[Zope-Checkins] CVS: Zope3/lib/python/Zope/PageTemplate - PageTemplateFile.py:1.1.2.21.4.1
Jim Fulton
jim@zope.com
Tue, 4 Jun 2002 15:57:49 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/PageTemplate
In directory cvs.zope.org:/tmp/cvs-serv25977
Modified Files:
Tag: Zope3InWonderland-branch
PageTemplateFile.py
Log Message:
Fixed bug in _cook_check that obscured errors arising from a
non-existent source file.
=== Zope3/lib/python/Zope/PageTemplate/PageTemplateFile.py 1.1.2.21 => 1.1.2.21.4.1 ===
except OSError:
mtime = 0
- if hasattr(self, '_v_program') and mtime == self._v_last_read:
+ if getattr(self, '_v_program', 0) and mtime == self._v_last_read:
return
self.pt_edit(open(self.filename), None)
self._cook()