[Zope3-checkins] CVS: Zope3/src/zope/app/publisher/browser - globalbrowsermenuservice.py:1.7

Jim Fulton jim@zope.com
Tue, 31 Dec 2002 06:20:18 -0500


Update of /cvs-repository/Zope3/src/zope/app/publisher/browser
In directory cvs.zope.org:/tmp/cvs-serv11702

Modified Files:
	globalbrowsermenuservice.py 
Log Message:
Added the ability to use for="*" in menu item directives to specify
menus for all objects.


=== Zope3/src/zope/app/publisher/browser/globalbrowsermenuservice.py 1.6 => 1.7 ===
--- Zope3/src/zope/app/publisher/browser/globalbrowsermenuservice.py:1.6	Mon Dec 30 22:35:09 2002
+++ Zope3/src/zope/app/publisher/browser/globalbrowsermenuservice.py	Tue Dec 31 06:20:18 2002
@@ -163,6 +163,8 @@
     __implements__ = ISubdirectiveHandler
 
     def __init__(self, _context, menu, for_):
+        if for_ == '*':
+            for_ = None
         self.menu = menu
         self.interface = _context.resolve(for_)