fnp
/
django-ssify.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add separate version file.
[django-ssify.git]
/
ssify
/
variables.py
diff --git
a/ssify/variables.py
b/ssify/variables.py
index
668bb51
..
46a787b
100644
(file)
--- a/
ssify/variables.py
+++ b/
ssify/variables.py
@@
-137,8
+137,12
@@
class SsiVariableNode(template.Node):
var = SsiVariable(self.tagpath, resolved_args, resolved_kwargs)
request = context['request']
var = SsiVariable(self.tagpath, resolved_args, resolved_kwargs)
request = context['request']
+ if not hasattr(request, 'ssi_vars_needed'):
+ request.ssi_vars_needed = {}
request.ssi_vars_needed[var.name] = var
if self.patch_response:
request.ssi_vars_needed[var.name] = var
if self.patch_response:
+ if not hasattr(request, 'ssi_patch_response'):
+ request.ssi_patch_response = []
request.ssi_patch_response.extend(self.patch_response)
if self.asvar:
request.ssi_patch_response.extend(self.patch_response)
if self.asvar: