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
 

_______________________________________________
Zope-Checkins maillist  -  Zope-Checkins@zope.org
http://mail.zope.org/mailman/listinfo/zope-checkins

Reply via email to