[Zope-Checkins]
SVN: Zope/trunk/lib/python/Products/Five/browser/pagetemplatefile.py
Added comment about why we copy the whole method
Hanno Schlichting
plone at hannosch.info
Sat Apr 26 15:21:11 EDT 2008
Log message for revision 85769:
Added comment about why we copy the whole method
Changed:
U Zope/trunk/lib/python/Products/Five/browser/pagetemplatefile.py
-=-
Modified: Zope/trunk/lib/python/Products/Five/browser/pagetemplatefile.py
===================================================================
--- Zope/trunk/lib/python/Products/Five/browser/pagetemplatefile.py 2008-04-26 19:04:49 UTC (rev 85768)
+++ Zope/trunk/lib/python/Products/Five/browser/pagetemplatefile.py 2008-04-26 19:21:11 UTC (rev 85769)
@@ -39,6 +39,9 @@
id = property(getId)
def __call__(self, __instance, *args, **keywords):
+ # Work around BBB foul. Before Zope 2.12 there was no first argument
+ # but the Zope 3 version has one called instance. Some people used
+ # instance as an additional keyword argument.
instance = __instance
namespace = self.pt_getContext(
request=instance.request,
More information about the Zope-Checkins
mailing list