[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/Security - IRolePermissionManager.py:1.1.2.3
Jim Fulton
jim@zope.com
Thu, 3 Jan 2002 14:03:29 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/App/Security
In directory cvs.zope.org:/tmp/cvs-serv11118
Modified Files:
Tag: Zope-3x-branch
IRolePermissionManager.py
Log Message:
Added retract method.
Updated doc strings to reflect that IDs, not instances, are managed.
=== Zope3/lib/python/Zope/App/Security/IRolePermissionManager.py 1.1.2.2 => 1.1.2.3 ===
"""Bind the permission to the role.
- permission must be an IPermission
- role must be an IRole
+ permission must be a permission id
+ role must be a role id
"""
+
+ def retractPermissionFromRole(permission, role):
+ """remove the binding of the permission to the role"""
def setPermissionAcquired(permission, flag):
"""Set a flag indicating whether permission settings are acquired.