[Checkins] SVN: z3c.pt/trunk/src/z3c/pt/pagetemplate.py Name-change.
Malthe Borch
mborch at gmail.com
Mon Sep 1 11:23:52 EDT 2008
Log message for revision 90655:
Name-change.
Changed:
U z3c.pt/trunk/src/z3c/pt/pagetemplate.py
-=-
Modified: z3c.pt/trunk/src/z3c/pt/pagetemplate.py
===================================================================
--- z3c.pt/trunk/src/z3c/pt/pagetemplate.py 2008-09-01 15:23:23 UTC (rev 90654)
+++ z3c.pt/trunk/src/z3c/pt/pagetemplate.py 2008-09-01 15:23:52 UTC (rev 90655)
@@ -67,9 +67,9 @@
def __init__(self, body, **kwargs):
self.template = ZopePageTemplate(body, **kwargs)
- property.__init__(self, self.render)
+ property.__init__(self, self.bind)
- def render(self, view):
+ def bind(self, view):
def template(**kwargs):
return self.template.render(view=view,
context=view.context,
@@ -100,8 +100,8 @@
filename = path + os.sep + filename
self.template = ZopePageTemplateFile(filename, **kwargs)
- property.__init__(self, self.render)
+ property.__init__(self, self.bind)
def __call__(self, view, **kwargs):
- template = self.render(view)
+ template = self.bind(view)
return template(**kwargs)
More information about the Checkins
mailing list