Skip to content

Commit

Permalink
Explicitly rebind simple.__call__ when overriding the method for Pyth…
Browse files Browse the repository at this point in the history
…on 2 support
  • Loading branch information
MatthewWilkes committed May 28, 2019
1 parent f8dedc9 commit 013171f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/zope/browserpage/metaconfigure.py
Expand Up @@ -414,7 +414,7 @@ class simple(BrowserView):
def publishTraverse(self, request, name):
if name in getattr(self, "_simple_whitelist", []):
self.__page_attribute__ = name
self.__call__ = simple.__call__
self.__call__ = simple.__call__.__get__(self, simple)
return self
else:
raise NotFound(self, name, request)
Expand Down

0 comments on commit 013171f

Please sign in to comment.