[Checkins] SVN: five.megrok.z3cpt/trunk/five/megrok/z3cpt/templatereg.py Inject the Grok namespace in the five.pt template.
Sylvain Viollon
sylvain at infrae.com
Mon Oct 6 14:41:52 EDT 2008
Log message for revision 91818:
Inject the Grok namespace in the five.pt template.
Changed:
U five.megrok.z3cpt/trunk/five/megrok/z3cpt/templatereg.py
-=-
Modified: five.megrok.z3cpt/trunk/five/megrok/z3cpt/templatereg.py
===================================================================
--- five.megrok.z3cpt/trunk/five/megrok/z3cpt/templatereg.py 2008-10-06 18:03:02 UTC (rev 91817)
+++ five.megrok.z3cpt/trunk/five/megrok/z3cpt/templatereg.py 2008-10-06 18:41:51 UTC (rev 91818)
@@ -17,7 +17,8 @@
pass
def render(self, view):
- return self._template(view)()
+ namespace = self.getNamespace(view)
+ return self._template.render(view, default_namespace=namespace)()
class ZopeTwoPageTemplateFileFactory(grok.GlobalUtility):
More information about the Checkins
mailing list