[Checkins] SVN: Zope/branches/2.10/ Launchpad #173658: Removed dead code in OFS.Traversable's

Tres Seaver tseaver at palladion.com
Sat Mar 8 12:49:39 EST 2008


Log message for revision 84543:
  Launchpad #173658:  Removed dead code in OFS.Traversable's
  'unrestrictedTraverse' (apparent NameError).
  

Changed:
  U   Zope/branches/2.10/doc/CHANGES.txt
  U   Zope/branches/2.10/lib/python/OFS/Traversable.py

-=-
Modified: Zope/branches/2.10/doc/CHANGES.txt
===================================================================
--- Zope/branches/2.10/doc/CHANGES.txt	2008-03-08 13:52:51 UTC (rev 84542)
+++ Zope/branches/2.10/doc/CHANGES.txt	2008-03-08 17:49:38 UTC (rev 84543)
@@ -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.10/lib/python/OFS/Traversable.py
===================================================================
--- Zope/branches/2.10/lib/python/OFS/Traversable.py	2008-03-08 13:52:51 UTC (rev 84542)
+++ Zope/branches/2.10/lib/python/OFS/Traversable.py	2008-03-08 17:49:38 UTC (rev 84543)
@@ -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 Checkins mailing list