[Zope-Checkins] CVS: Zope2 - Role.py:1.44.4.3
Brian Lloyd
brian@digicool.com
Mon, 16 Apr 2001 11:42:25 -0400 (EDT)
Update of /cvs-repository/Zope2/lib/python/AccessControl
In directory korak:/home/brian/temp/zope-23-branch/lib/python/AccessControl
Modified Files:
Tag: zope-2_3-branch
Role.py
Log Message:
Fixed permission_settings to remove misleading 'Manager' from
defaults
--- Updated File Role.py in package Zope2 --
--- Role.py 2001/01/22 15:10:44 1.44.4.2
+++ Role.py 2001/04/16 15:42:25 1.44.4.3
@@ -170,7 +170,7 @@
for p in self.ac_inherited_permissions(1):
name, value = p[:2]
p=Permission(name,value,self)
- roles=p.getRoles()
+ roles=p.getRoles(default=[])
d={'name': name,
'acquire': type(roles) is ListType and 'CHECKED' or '',
'roles': map(
@@ -183,7 +183,6 @@
}
ip=ip+1
result.append(d)
-
return result
manage_roleForm=DTMLFile('dtml/roleEdit', globals(),