[Checkins] SVN: zope.pagetemplate/trunk/src/zope/pagetemplate/pagetemplatefile.py The ``pt_edit`` method always cooks the template before returning; no need to do it twice. This behavior has now been documented in the interface method description of ``pt_edit``.
Malthe Borch
mborch at gmail.com
Fri Oct 7 01:53:22 EST 2011
Log message for revision 123027:
The ``pt_edit`` method always cooks the template before returning; no need to do it twice. This behavior has now been documented in the interface method description of ``pt_edit``.
Changed:
U zope.pagetemplate/trunk/src/zope/pagetemplate/pagetemplatefile.py
-=-
Modified: zope.pagetemplate/trunk/src/zope/pagetemplate/pagetemplatefile.py
===================================================================
--- zope.pagetemplate/trunk/src/zope/pagetemplate/pagetemplatefile.py 2011-10-04 16:12:48 UTC (rev 123026)
+++ zope.pagetemplate/trunk/src/zope/pagetemplate/pagetemplatefile.py 2011-10-07 06:53:21 UTC (rev 123027)
@@ -100,7 +100,7 @@
return
text, type_ = self._read_file()
self.pt_edit(text, type_)
- self._cook()
+ assert self._v_cooked
if self._v_errors:
logging.error('PageTemplateFile: Error in template %s: %s',
self.filename, '\n'.join(self._v_errors))
More information about the checkins
mailing list