[Zope-Checkins] SVN: Zope/branches/philikon-aq/lib/python/Products/Five/browser/pagetemplatefile.py Remember that Hanno's fix should probably be made in zope.app.pagetemplate.

Philipp von Weitershausen philikon at philikon.de
Fri Apr 18 08:43:28 EDT 2008


Log message for revision 85467:
  Remember that Hanno's fix should probably be made in zope.app.pagetemplate.
  

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	2008-04-18 07:50:23 UTC (rev 85466)
+++ Zope/branches/philikon-aq/lib/python/Products/Five/browser/pagetemplatefile.py	2008-04-18 12:43:22 UTC (rev 85467)
@@ -38,6 +38,10 @@
 
     id = property(getId)
 
+    # TODO: This is basically a copy'n'paste job from the base class,
+    # just to rename the 'instance' keyword argument and thus to allow
+    # this argument to occur in **keywords.  Ideally, we should put this
+    # fix in zope.app.pagetemplate and get rid of the duplication here.
     def __call__(self, __instance, *args, **keywords):
         instance = __instance
         namespace = self.pt_getContext(



More information about the Zope-Checkins mailing list