[Zope-Checkins] SVN: Zope/branches/2.11/ Launchpad #173658: Removed
dead code in OFS.Traversable's
Tres Seaver
tseaver at palladion.com
Sat Mar 8 12:51:08 EST 2008
Log message for revision 84544:
Launchpad #173658: Removed dead code in OFS.Traversable's
'unrestrictedTraverse' (apparent NameError).
Changed:
U Zope/branches/2.11/doc/CHANGES.txt
U Zope/branches/2.11/lib/python/OFS/Traversable.py
-=-
Modified: Zope/branches/2.11/doc/CHANGES.txt
===================================================================
--- Zope/branches/2.11/doc/CHANGES.txt 2008-03-08 17:49:38 UTC (rev 84543)
+++ Zope/branches/2.11/doc/CHANGES.txt 2008-03-08 17:51:07 UTC (rev 84544)
@@ -8,6 +8,9 @@
Bugs Fixed
+ - Launchpad #173658: Removed dead code in OFS.Traversable's
+ 'unrestrictedTraverse' (apparent NameError).
+
- Launchpad #198274: "empty" ZopePageTemplates could not be
unpickled.
Modified: Zope/branches/2.11/lib/python/OFS/Traversable.py
===================================================================
--- Zope/branches/2.11/lib/python/OFS/Traversable.py 2008-03-08 17:49:38 UTC (rev 84543)
+++ Zope/branches/2.11/lib/python/OFS/Traversable.py 2008-03-08 17:51:07 UTC (rev 84544)
@@ -161,8 +161,8 @@
# If the path starts with an empty string, go to the root first.
path_pop()
obj = self.getPhysicalRoot()
- if restricted and not validate(None, None, None, obj):
- raise Unauthorized(name)
+ if restricted:
+ validate(None, None, None, obj) # may raise Unauthorized
else:
obj = self
More information about the Zope-Checkins
mailing list