[Zope3-checkins] CVS: Zope3/src/zope/app/security - zopepolicy.py:1.12

Jim Fulton jim at zope.com
Sun Sep 21 13:32:29 EDT 2003


Update of /cvs-repository/Zope3/src/zope/app/security
In directory cvs.zope.org:/tmp/cvs-serv13558/src/zope/app/security

Modified Files:
	zopepolicy.py 
Log Message:
No-longer use context wrappers.


=== Zope3/src/zope/app/security/zopepolicy.py 1.11 => 1.12 ===
--- Zope3/src/zope/app/security/zopepolicy.py:1.11	Tue Jun  3 11:45:10 2003
+++ Zope3/src/zope/app/security/zopepolicy.py	Sun Sep 21 13:31:58 2003
@@ -18,7 +18,7 @@
 __version__='$Revision$'[11:-2]
 
 from zope.component import queryAdapter
-from zope.context import ContainmentIterator
+from zope.app.location import LocationIterator
 
 from zope.security.interfaces import ISecurityPolicy
 from zope.security.management import system_user
@@ -148,7 +148,7 @@
                 return True
 
         # Look for placeful grants
-        for place in ContainmentIterator(object):
+        for place in LocationIterator(object):
 
             # Copy specific principal permissions
             prinper = queryAdapter(place, IPrincipalPermissionMap)
@@ -244,7 +244,7 @@
             roles[role] = setting
 
     # get placeful principal permissions and roles
-    for place in ContainmentIterator(object):
+    for place in LocationIterator(object):
 
         # Copy specific principal permissions
         prinper = queryAdapter(place, IPrincipalPermissionMap)
@@ -268,7 +268,7 @@
         if role in roles and perm not in permissions:
             permissions[perm] = setting
 
-    for place in ContainmentIterator(object):
+    for place in LocationIterator(object):
 
         # Collect role permissions
         roleper = queryAdapter(place, IRolePermissionMap)




More information about the Zope3-Checkins mailing list