[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/Security - ZopeSecurityPolicy.py:1.1.2.7
Barry Warsaw
barry@wooz.org
Wed, 12 Dec 2001 17:38:02 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/App/Security
In directory cvs.zope.org:/tmp/cvs-serv16741/lib/python/Zope/App/Security
Modified Files:
Tag: Zope-3x-branch
ZopeSecurityPolicy.py
Log Message:
Part of PermissionRegistry refactoring:
_listRolesFor(): rolesForPermission() -> getRolesForPermission()
=== Zope3/lib/python/Zope/App/Security/ZopeSecurityPolicy.py 1.1.2.6 => 1.1.2.7 ===
from Zope.Exceptions import Unauthorized
-from PermissionRegistry import rolesForPermission
+from RolePermissionMap import getRolesForPermission
_notfound = []
_what_not_even_god_should_do = ()
@@ -122,7 +122,7 @@
role_set = {}
# Add "global" roles for permission here
- for role in rolesForPermission( permission ):
+ for role in getRolesForPermission( permission ):
role_set[ role ] = 1
roles = role_set.keys()