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

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


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

Modified Files:
	globalbrowsermenuservice.py 
Log Message:
Only resolve the for interface if it isn't '*'.


=== Zope3/src/zope/app/publisher/browser/globalbrowsermenuservice.py 1.7 => 1.8 ===
--- Zope3/src/zope/app/publisher/browser/globalbrowsermenuservice.py:1.7	Tue Dec 31 06:20:18 2002
+++ Zope3/src/zope/app/publisher/browser/globalbrowsermenuservice.py	Tue Dec 31 06:29:48 2002
@@ -164,9 +164,10 @@
 
     def __init__(self, _context, menu, for_):
         if for_ == '*':
-            for_ = None
+            self.interface = None
+        else:
+            self.interface = _context.resolve(for_)
         self.menu = menu
-        self.interface = _context.resolve(for_)
 
     def menuItem(self, _context, action, title, description='',
                  filter=None, permission=None):