[Zope-Checkins] SVN: Products.Five/trunk/browser/pagetemplatefile.py added preliminary code to make implementation work with the Zope 3 ZPT

Andreas Jung andreas at andreas-jung.com
Wed Mar 1 11:08:49 EST 2006


Log message for revision 65670:
  added preliminary code to make implementation work with the Zope 3 ZPT
  implementation on ajung-final-zpt-integration branch
  

Changed:
  U   Products.Five/trunk/browser/pagetemplatefile.py

-=-
Modified: Products.Five/trunk/browser/pagetemplatefile.py
===================================================================
--- Products.Five/trunk/browser/pagetemplatefile.py	2006-03-01 16:07:51 UTC (rev 65669)
+++ Products.Five/trunk/browser/pagetemplatefile.py	2006-03-01 16:08:49 UTC (rev 65670)
@@ -47,6 +47,14 @@
 
         basepath, ext = os.path.splitext(self.filename)
         self.__name__ = os.path.basename(basepath)
+
+
+        # required for the ajung-zpt-final-integration branch
+        try:
+            PageTemplateFile.__init__(self, self.filename, _prefix)
+        except:
+            pass
+        
  
     def get_path_from_prefix(self, _prefix):
         if isinstance(_prefix, str):



More information about the Zope-Checkins mailing list