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,8 +192,14 @@ class IFiveViewDirective(IViewDirective):
class view(zope.browserpage.metaconfigure.view):
def __call__(self):
(_context, name, for_, permission, layer, class_,
allowed_interface, allowed_attributes) = self.args
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_,
allowed_interface, allowed_attributes) = self.args
name = str(name) # De-unicode
......
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