[CMF-checkins] CVS: Products/CMFDecor - FSPageTemplate.py:1.5
Tres Seaver
tseaver@zope.com
Thu, 15 Nov 2001 11:33:13 -0500
Update of /cvs-repository/Products/CMFDecor
In directory cvs.zope.org:/tmp/cvs-serv18840
Modified Files:
FSPageTemplate.py
Log Message:
- Hook new macro lookup to reload during debug.
=== Products/CMFDecor/FSPageTemplate.py 1.4 => 1.5 ===
security.declareProtected(View, '__call__')
+ def pt_macros(self):
+ # Tie in on an opportunity to auto-reload
+ self._updateFromFS()
+ return FSPageTemplate.inheritedAttribute('pt_macros')(self)
+
def pt_render(self, source=0, extra_context={}):
# Tie in on an opportunity to auto-reload
self._updateFromFS()