[Zope3-checkins]
SVN: Zope3/trunk/src/zope/app/publisher/browser/metaconfigure.py
Forgot to add layer attribute to addMenuItem.
Stephan Richter
srichter at cosmos.phy.tufts.edu
Mon Feb 28 20:05:42 EST 2005
Log message for revision 29353:
Forgot to add layer attribute to addMenuItem.
Changed:
U Zope3/trunk/src/zope/app/publisher/browser/metaconfigure.py
-=-
Modified: Zope3/trunk/src/zope/app/publisher/browser/metaconfigure.py
===================================================================
--- Zope3/trunk/src/zope/app/publisher/browser/metaconfigure.py 2005-02-28 23:18:37 UTC (rev 29352)
+++ Zope3/trunk/src/zope/app/publisher/browser/metaconfigure.py 2005-03-01 01:05:42 UTC (rev 29353)
@@ -350,7 +350,7 @@
def addMenuItem(_context, title, class_=None, factory=None, description='',
- permission=None, filter=None, view=None):
+ permission=None, filter=None, view=None, layer=IBrowserRequest):
"""Create an add menu item for a given class or factory
As a convenience, a class can be provided, in which case, a
@@ -376,11 +376,11 @@
extra = {'factory': factory}
- if view:
+ if view:
action = view
else:
action = factory
menuItemDirective(_context, AddMenu, IAdding,
action, title, description, None, filter,
- permission, extra)
+ permission, layer, extra)
More information about the Zope3-Checkins
mailing list