[Zope-Checkins] CVS: Zope/lib/python/AccessControl - PermissionRole.py:1.15
Andreas Jung
andreas@zope.com
Thu, 13 Dec 2001 09:24:42 -0500
Update of /cvs-repository/Zope/lib/python/AccessControl
In directory cvs.zope.org:/tmp/cvs-serv8190
Modified Files:
PermissionRole.py
Log Message:
merge from 2.5 branch (string methods)
=== Zope/lib/python/AccessControl/PermissionRole.py 1.14 => 1.15 ===
name_trans=filter(lambda c, an=string.letters+string.digits+'_': c not in an,
map(chr,range(256)))
- name_trans=string.maketrans(string.join(name_trans,''), '_'*len(name_trans))
+ name_trans=string.maketrans(''.join(name_trans), '_'*len(name_trans))
def rolesForPermissionOn(perm, object, default=('Manager',)):
"""Return the roles that have the given permission on the given object