[Checkins] SVN: grok/branches/regebro-guido-templates/src/grok/components.py Now also updates the variables from the template.

Lennart Regebro regebro at gmail.com
Thu Oct 4 10:19:04 EDT 2007


Log message for revision 80613:
  Now also updates the variables from the template.
  

Changed:
  U   grok/branches/regebro-guido-templates/src/grok/components.py

-=-
Modified: grok/branches/regebro-guido-templates/src/grok/components.py
===================================================================
--- grok/branches/regebro-guido-templates/src/grok/components.py	2007-10-04 14:18:30 UTC (rev 80612)
+++ grok/branches/regebro-guido-templates/src/grok/components.py	2007-10-04 14:19:04 UTC (rev 80613)
@@ -125,12 +125,14 @@
         return self.template.render_template(self)
 
     def getDefaultVariables(self):
+        # XXX Martijn wants this to be on a template language specific utility. /regebro
         namespace = {}
         namespace['request'] = self.request
         namespace['view'] = self
         namespace['context'] = self.context
         # XXX need to check whether we really want to put None here if missing
         namespace['static'] = self.static
+        namespace.update(self.template.getDefaultVariables())
         return namespace
 
     def getTemplateVariables(self):



More information about the Checkins mailing list