Commit 568afdcc authored by Martin Häcker's avatar Martin Häcker

Trying to fix https://bugs.launchpad.net/zope2/+bug/1387225 changed format of...

Trying to fix https://bugs.launchpad.net/zope2/+bug/1387225 changed format of self.args in superclass
parent bc41a5ee
...@@ -192,6 +192,12 @@ class IFiveViewDirective(IViewDirective): ...@@ -192,6 +192,12 @@ class IFiveViewDirective(IViewDirective):
class view(zope.browserpage.metaconfigure.view): class view(zope.browserpage.metaconfigure.view):
def __call__(self): def __call__(self):
if 7 == len(self.args) and isinstance(self.args[2], tuple):
# zope.browserpage 4.0.0 changd the format of the args
# See https://github.com/zopefoundation/zope.browserpage/commit/b368364f0ce3aef058cc143b2a06572a4666b65b#diff-9b57f9ca40ff82d7998207d13fdd4846L219
(_context, name, (for_, layer), permission, class_,
allowed_interface, allowed_attributes) = self.args
else:
(_context, name, for_, permission, layer, class_, (_context, name, for_, permission, layer, class_,
allowed_interface, allowed_attributes) = self.args allowed_interface, allowed_attributes) = self.args
......
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