[Zope-Checkins] CVS: Zope/lib/python/OFS - Traversable.py:1.22

Jim Fulton cvs-admin at zope.org
Fri Nov 28 11:45:44 EST 2003


Update of /cvs-repository/Zope/lib/python/OFS
In directory cvs.zope.org:/tmp/cvs-serv4971/lib/python/OFS

Modified Files:
	Traversable.py 
Log Message:
Use new getRoles function to get object roles, rather than using
__roles__ attribute.


=== Zope/lib/python/OFS/Traversable.py 1.21 => 1.22 ===
--- Zope/lib/python/OFS/Traversable.py:1.21	Mon Sep 29 08:34:38 2003
+++ Zope/lib/python/OFS/Traversable.py	Fri Nov 28 11:45:44 2003
@@ -91,7 +91,8 @@
             # If the path starts with an empty string, go to the root first.
             pop()
             self=self.getPhysicalRoot()
-            if (restricted and not securityManager.validateValue(self)):
+            if (restricted and not securityManager.validate(
+                None, None, None, self)):
                 raise Unauthorized, name
 
         try:




More information about the Zope-Checkins mailing list