[ZPT] CVS: Products/PageTemplates - PageTemplateFile.py:1.3

evan@cvs.baymountain.com evan@cvs.baymountain.com
Tue, 24 Jul 2001 16:06:16 -0400


Update of /cvs-repository/Products/PageTemplates
In directory cvs.zope.org:/tmp/cvs-serv24719

Modified Files:
	PageTemplateFile.py 
Log Message:
Fixed bug in _cook_check()'s forced read. 
 
=== Products/PageTemplates/PageTemplateFile.py 1.2 => 1.3 ===

         try:    mtime=os.stat(self.filename)[8]
         except: mtime=0
-        if mtime == self._v_last_read:
-                return
+        if hasattr(self, '_v_program') and mtime == self._v_last_read:
+            return
         self.pt_edit(open(self.filename), None)
         self._cook()
         if self._v_errors: