[Zope-Checkins] CVS: Zope/lib/python/App - Management.py:1.65
Jim Fulton
cvs-admin at zope.org
Fri Nov 28 11:44:25 EST 2003
Update of /cvs-repository/Zope/lib/python/App
In directory cvs.zope.org:/tmp/cvs-serv3756/lib/python/App
Modified Files:
Management.py
Log Message:
Changed to use restrictedTraverse rather than unrestrictedTraverse
followed by a security check.
=== Zope/lib/python/App/Management.py 1.64 => 1.65 ===
--- Zope/lib/python/App/Management.py:1.64 Tue Nov 18 08:16:58 2003
+++ Zope/lib/python/App/Management.py Fri Nov 28 11:44:25 2003
@@ -53,16 +53,11 @@
if path is None:
path=d['action']
- o=self.unrestrictedTraverse(path, None)
+ o=self.restrictedTraverse(path, None)
if o is None:
- continue
+ 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