Commit 688dde26 authored by Hanno Schlichting's avatar Hanno Schlichting

Added comment about why we copy the whole method

parent 0afd69d4
......@@ -39,6 +39,9 @@ class ViewPageTemplateFile(viewpagetemplatefile.ViewPageTemplateFile):
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,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment