[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/Security - IRolePermissionMap.py:1.1.2.3

Barry Warsaw barry@wooz.org
Thu, 13 Dec 2001 15:35:34 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/App/Security
In directory cvs.zope.org:/tmp/cvs-serv23270

Modified Files:
      Tag: Zope-3x-branch
	IRolePermissionMap.py 
Log Message:
This interface needs to include getRolesForPermission()


=== Zope3/lib/python/Zope/App/Security/IRolePermissionMap.py 1.1.2.2 => 1.1.2.3 ===
         """
 
+    def getRolesForPermission(permission):
+        """Return the list of roles for the given permission.
+
+        permission must be an IPermission.  If no roles have been granted
+        this permission, then the empty list is returned.
+        """
+
     def getPermissionAcquired(permission):
         """Return a flag indicating whether permission settings are acquired.
         """