[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/Security - IPrincipalRoleMap.py:1.1.2.2

Steve Spicklemire steve@spvi.com
Fri, 8 Feb 2002 13:48:19 -0500


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

Modified Files:
      Tag: Zope-3x-branch
	IPrincipalRoleMap.py 
Log Message:
added new getSetting and fixed docstring

=== Zope3/lib/python/Zope/App/Security/IPrincipalRoleMap.py 1.1.2.1 => 1.1.2.2 ===
 
     def getPrincipalsForRole(role):
-        """Return the list of principals who have been assigned role.
+        """Return the list of (principal, setting) who have been assigned or removed from a role.
 
         role must be an IRole.  If no principals have been assigned this role,
         then the empty list is returned.
         """
 
     def getRolesForPrincipal(principal):
-        """Return the list of roles assigned to this principal.
+        """Return the list of (role, setting) assigned or removed from this principal.
 
         principal must be an IPrincipal.  If no roles have been assigned to
         this principal, then the empty list is returned.
         """
+
+    def getSetting(role, principal):
+        """Return the setting for this principal, role combination
+
+        principal must be an IPrincipal.  role must be an IRole.
+        """
+
+