[Zope3-checkins] SVN: Zope3/branches/zipimport-support/src/zope/pagetemplate/pagetemplatefile.py use the filereference APIs for more operations

Fred L. Drake, Jr. fdrake at gmail.com
Wed Nov 9 19:21:34 EST 2005


Log message for revision 40020:
  use the filereference APIs for more operations

Changed:
  U   Zope3/branches/zipimport-support/src/zope/pagetemplate/pagetemplatefile.py

-=-
Modified: Zope3/branches/zipimport-support/src/zope/pagetemplate/pagetemplatefile.py
===================================================================
--- Zope3/branches/zipimport-support/src/zope/pagetemplate/pagetemplatefile.py	2005-11-10 00:14:28 UTC (rev 40019)
+++ Zope3/branches/zipimport-support/src/zope/pagetemplate/pagetemplatefile.py	2005-11-10 00:21:34 UTC (rev 40020)
@@ -47,7 +47,7 @@
     def __init__(self, filename, _prefix=None):
         path = self.get_path_from_prefix(_prefix)
         self.filename = os.path.join(path, filename)
-        if not os.path.isfile(self.filename):
+        if not filereference.isfile(self.filename):
             raise ValueError("No such file", self.filename)
 
     def get_path_from_prefix(self, _prefix):
@@ -96,7 +96,7 @@
             return
         __traceback_info__ = self.filename
         try:
-            mtime = os.path.getmtime(self.filename)
+            mtime = filereference.getmtime(self.filename)
         except OSError:
             mtime = 0
         if self._v_program is not None and mtime == self._v_last_read:



More information about the Zope3-Checkins mailing list