[Zope-Checkins] CVS: Zope/lib/python/App - Management.py:1.63.2.1
Jim Fulton
cvs-admin at zope.org
Sat Nov 22 12:16:26 EST 2003
Update of /cvs-repository/Zope/lib/python/App
In directory cvs.zope.org:/tmp/cvs-serv17116/lib/python/App
Modified Files:
Tag: zodb33-devel-branch
Management.py
Log Message:
Implemented a new mechanism for computing roles, based on a suggestion
by Dieter Maurer.
=== Zope/lib/python/App/Management.py 1.63 => 1.63.2.1 ===
--- Zope/lib/python/App/Management.py:1.63 Fri Oct 17 12:21:14 2003
+++ Zope/lib/python/App/Management.py Sat Nov 22 12:15:55 2003
@@ -50,15 +50,11 @@
path=d.get('path', None)
if path is None: path=d['action']
- o=self.unrestrictedTraverse(path, None)
- if o is None: continue
+ o=self.restrictedTraverse(path, None)
+ if o is None:
+ continue
- try:
- if validate(None, self, None, o):
- result.append(d)
- except:
- if not hasattr(o, '__roles__'):
- result.append(d)
+ result.append(d)
return result
More information about the Zope-Checkins
mailing list