[Zope-Checkins] SVN: Zope/branches/philikon-aq/lib/python/Products/Five/browser/pagetemplatefile.py Simplify my braindead code

Hanno Schlichting plone at hannosch.info
Tue Aug 28 17:29:25 EDT 2007


Log message for revision 79329:
  Simplify my braindead code

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:21:09 UTC (rev 79328)
+++ Zope/branches/philikon-aq/lib/python/Products/Five/browser/pagetemplatefile.py	2007-08-28 21:29:24 UTC (rev 79329)
@@ -35,9 +35,7 @@
     def getId(self):
         return basename(self.filename)
 
-    @property
-    def id(self):
-        return self.getId()
+    property(getId)
 
     def pt_getEngine(self):
         return getEngine()



More information about the Zope-Checkins mailing list