[Zope-Checkins]
SVN: Zope/branches/philikon-aq/lib/python/Products/Five/browser/__init__.py
Use an explicit __init__ to work around problems with
magically inserted super classes when using BrowserView as a
base for viewlets.
Hanno Schlichting
plone at hannosch.info
Tue Aug 28 15:25:24 EDT 2007
Log message for revision 79323:
Use an explicit __init__ to work around problems with magically inserted super classes when using BrowserView as a base for viewlets.
Changed:
U Zope/branches/philikon-aq/lib/python/Products/Five/browser/__init__.py
-=-
Modified: Zope/branches/philikon-aq/lib/python/Products/Five/browser/__init__.py
===================================================================
--- Zope/branches/philikon-aq/lib/python/Products/Five/browser/__init__.py 2007-08-28 17:46:52 UTC (rev 79322)
+++ Zope/branches/philikon-aq/lib/python/Products/Five/browser/__init__.py 2007-08-28 19:25:24 UTC (rev 79323)
@@ -23,6 +23,11 @@
# 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
More information about the Zope-Checkins
mailing list