[Zope-Checkins] SVN: Zope/trunk/lib/python/Products/PageTemplates/PageTemplateFile.py Add in a getId method.

Chris Withers chris at simplistix.co.uk
Tue Jul 13 06:50:41 EDT 2004


Log message for revision 26443:
  Add in a getId method.


Changed:
  U   Zope/trunk/lib/python/Products/PageTemplates/PageTemplateFile.py


-=-
Modified: Zope/trunk/lib/python/Products/PageTemplates/PageTemplateFile.py
===================================================================
--- Zope/trunk/lib/python/Products/PageTemplates/PageTemplateFile.py	2004-07-13 10:46:39 UTC (rev 26442)
+++ Zope/trunk/lib/python/Products/PageTemplates/PageTemplateFile.py	2004-07-13 10:50:41 UTC (rev 26443)
@@ -69,6 +69,10 @@
             filename = filename + '.zpt'
         self.filename = os.path.join(_prefix, filename)
 
+    def getId(self):
+        """return the ID of this object"""
+        return self.__name__
+    
     def pt_getContext(self):
         root = self.getPhysicalRoot()
         context = self._getContext()



More information about the Zope-Checkins mailing list