Log message for revision 79328:
  Provide BBB for ViewPageTemplateFile

Changed:
  U   
Zope/branches/philikon-aq/lib/python/Products/Five/browser/pagetemplatefile.py

-=-
Modified: 
Zope/branches/philikon-aq/lib/python/Products/Five/browser/pagetemplatefile.py
===================================================================
--- 
Zope/branches/philikon-aq/lib/python/Products/Five/browser/pagetemplatefile.py  
    2007-08-28 21:20:45 UTC (rev 79327)
+++ 
Zope/branches/philikon-aq/lib/python/Products/Five/browser/pagetemplatefile.py  
    2007-08-28 21:21:09 UTC (rev 79328)
@@ -15,6 +15,7 @@
 
 $Id$
 """
+from os.path import basename
 import zope.app.pagetemplate
 
 from Acquisition import aq_get
@@ -22,12 +23,22 @@
 from Products.PageTemplates.Expressions import SecureModuleImporter
 from Products.PageTemplates.Expressions import createTrustedZopeEngine
 
+from Products.Five.bbb import AquisitionBBB
+
 _engine = createTrustedZopeEngine()
 def getEngine():
     return _engine
 
-class ViewPageTemplateFile(zope.app.pagetemplate.ViewPageTemplateFile):
+class ViewPageTemplateFile(zope.app.pagetemplate.ViewPageTemplateFile,
+                           AquisitionBBB):
 
+    def getId(self):
+        return basename(self.filename)
+
+    @property
+    def id(self):
+        return self.getId()
+
     def pt_getEngine(self):
         return getEngine()
 

_______________________________________________
Zope-Checkins maillist  -  Zope-Checkins@zope.org
http://mail.zope.org/mailman/listinfo/zope-checkins

Reply via email to