[Zope3-checkins] CVS: Zope3/lib/python/Zope/PageTemplate - PageTemplateFile.py:1.4
Steve Alexander
steve@cat-box.net
Thu, 18 Jul 2002 12:37:28 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/PageTemplate
In directory cvs.zope.org:/tmp/cvs-serv28143/lib/python/Zope/PageTemplate
Modified Files:
PageTemplateFile.py
Log Message:
same fix as I made in Zope2's PageTemplateFile.py.
Shoudln't be using hasattr to test whether there is a _v_program,
as _v_program is a class attribute in the PageTemplate base class.
=== Zope3/lib/python/Zope/PageTemplate/PageTemplateFile.py 1.3 => 1.4 ===
mtime = os.path.getmtime(self.filename)
except OSError:
mtime = 0
- if getattr(self, '_v_program', 0) and mtime == self._v_last_read:
+ if self._v_program is not None and mtime == self._v_last_read:
return
self.pt_edit(open(self.filename), None)
self._cook()