[Zope3-checkins] CVS: Zope3/src/zope/app/publisher/browser -
globalbrowsermenuservice.py:1.25
Jim Fulton
jim at zope.com
Tue Sep 2 17:46:58 EDT 2003
Update of /cvs-repository/Zope3/src/zope/app/publisher/browser
In directory cvs.zope.org:/tmp/cvs-serv17063/src/zope/app/publisher/browser
Modified Files:
globalbrowsermenuservice.py
Log Message:
Added a modules top-level name. This allows menu filters to use
functions and other objects from modules, as long as there are the
necessary security declarations.
=== Zope3/src/zope/app/publisher/browser/globalbrowsermenuservice.py 1.24 => 1.25 ===
--- Zope3/src/zope/app/publisher/browser/globalbrowsermenuservice.py:1.24 Sun Aug 17 02:07:32 2003
+++ Zope3/src/zope/app/publisher/browser/globalbrowsermenuservice.py Tue Sep 2 16:46:57 2003
@@ -17,23 +17,20 @@
"""
__metaclass__ = type
+import sys
from zope.exceptions import DuplicationError, Unauthorized, Forbidden
-
from zope.interface.type import TypeRegistry
from zope.interface import implements
-
from zope.app.services.servicenames import Interfaces
-
from zope.security.checker import CheckerPublic
from zope.security.management import getSecurityManager
-
from zope.app.security.permission import checkPermission
-
from zope.app.component.metaconfigure import handler
from zope.app.interfaces.publisher.browser import \
IBrowserMenuService, IGlobalBrowserMenuService, IBrowserMenu
from zope.app.pagetemplate.engine import Engine
from zope.app.publication.browser import PublicationTraverser
+from zope.security.proxy import ProxyFactory
class Menu:
"""Browser menu"""
@@ -94,6 +91,7 @@
context = object,
nothing = None,
request = request,
+ modules = ProxyFactory(sys.modules),
))
except Unauthorized:
include = 0
More information about the Zope3-Checkins
mailing list