[Zope3-checkins] CVS: Zope3/src/zope/app/publisher/browser -
globalbrowsermenuservice.py:1.21.4.4
Sidnei da Silva
sidnei at x3ng.com.br
Fri Aug 15 09:57:22 EDT 2003
Update of /cvs-repository/Zope3/src/zope/app/publisher/browser
In directory cvs.zope.org:/tmp/cvs-serv1147/src/zope/app/publisher/browser
Modified Files:
Tag: dreamcatcher-ttwschema-branch
globalbrowsermenuservice.py
Log Message:
No .pyc in cvs pls
=== Zope3/src/zope/app/publisher/browser/globalbrowsermenuservice.py 1.21.4.3 => 1.21.4.4 ===
--- Zope3/src/zope/app/publisher/browser/globalbrowsermenuservice.py:1.21.4.3 Thu Aug 14 18:46:33 2003
+++ Zope3/src/zope/app/publisher/browser/globalbrowsermenuservice.py Fri Aug 15 08:56:48 2003
@@ -85,9 +85,9 @@
if title in seen:
continue
seen[title] = 1
-
+
if filter is not None:
-
+
try:
include = filter(Engine.getContext(
context = object,
@@ -96,23 +96,23 @@
))
except Unauthorized:
include = 0
-
+
if not include:
continue
-
+
if permission:
# If we have an explicit permission, check that we
# can access it.
if not sm.checkPermission(permission, object) and \
permission is not CheckerPublic:
continue
-
+
elif action:
# Otherwise, test access by attempting access
path = action
l = action.find('?')
if l >= 0:
- path = action[:l]
+ path = action[:l]
try:
v = traverser.traverseRelativeURL(
request, object, path)
@@ -127,7 +127,7 @@
normalized_action = action
if action.startswith('@@'):
normalized_action = action[2:]
-
+
if request_url.endswith(action):
selected='selected'
elif request_url.endswith('/'+normalized_action):
@@ -143,7 +143,7 @@
'action': "%s" % action,
'selected': selected
})
-
+
if len(result) >= max:
return result
@@ -151,7 +151,7 @@
def getMenuUsage(self, menu_id):
return self._registry[menu_id].usage
-
+
def getFirstMenuItem(self, menu_id, object, request):
r = self.getMenu(menu_id, object, request, max=1)
More information about the Zope3-Checkins
mailing list