Commit 849b2fb6 authored by Hanno Schlichting's avatar Hanno Schlichting

Use an explicit __init__ to work around problems with magically inserted super...

Use an explicit __init__ to work around problems with magically inserted super classes when using BrowserView as a base for viewlets.
parent 7410869e
......@@ -23,6 +23,11 @@ class BrowserView(zope.publisher.browser.BrowserView):
# BBB for code that expects BrowserView to still inherit from
# Acquisition.Explicit.
# Use an explicit __init__ to work around problems with magically inserted
# super classes when using BrowserView as a base for viewlets.
def __init__(self, context, request):
zope.publisher.browser.BrowserView.__init__(self, context, request)
def __of__(self, context):
# Technically this isn't in line with the way Acquisition's
# __of__ works. With Acquisition, you get a wrapper around
......
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