[Zope3-checkins] CVS: Zope3/src/zope/app/interfaces/security - __init__.py:1.4.2.1
Sidnei da Silva
sidnei@x3ng.com.br
Tue, 11 Feb 2003 09:41:50 -0500
Update of /cvs-repository/Zope3/src/zope/app/interfaces/security
In directory cvs.zope.org:/tmp/cvs-serv18615/src/zope/app/interfaces/security
Modified Files:
Tag: paris-copypasterename-branch
__init__.py
Log Message:
Updating from HEAD to make sure everything still works before merging
=== Zope3/src/zope/app/interfaces/security/__init__.py 1.4 => 1.4.2.1 ===
--- Zope3/src/zope/app/interfaces/security/__init__.py:1.4 Tue Dec 31 13:36:00 2002
+++ Zope3/src/zope/app/interfaces/security/__init__.py Tue Feb 11 09:41:19 2003
@@ -31,7 +31,8 @@
"""Return a description of the principal."""
def getRoles():
- """Return a possibly empty list of Roles held by this Principal"""
+ """Return a possibly empty list of ids of roles held by this principal.
+ """
class IUnauthenticatedPrincipal(IPrincipal):
@@ -40,6 +41,7 @@
Authenticated principals are preferable to UnauthenticatedPrincipals.
"""
+
class IAuthenticationService(Interface):
"""Provide support for establishing principals for requests.
@@ -161,6 +163,7 @@
class IRegisteredObject(Interface):
+
def getId():
"""Get the id of the registered object."""
@@ -251,7 +254,7 @@
def getPrincipalsForRole(role_id):
"""Get the principals that have been granted a role.
- Return the list of (principal, setting) who have been assigned or
+ Return the list of (principal id, setting) who have been assigned or
removed from a role.
If no principals have been assigned this role,
@@ -261,7 +264,7 @@
def getRolesForPrincipal(principal_id):
"""Get the roles granted to a principal.
- Return the list of (role, setting) assigned or removed from
+ Return the list of (role id, setting) assigned or removed from
this principal.
If no roles have been assigned to
@@ -277,8 +280,7 @@
Return all the principal/role combinations along with the
setting for each combination as a sequence of tuples with the
- role, principal, and setting, in that order.
-
+ role id, principal id, and setting, in that order.
"""
@@ -286,15 +288,13 @@
"""Management interface for mappings between principals and roles."""
def assignRoleToPrincipal(role_id, principal_id):
- """Assign the role to the principal.
- """
+ """Assign the role to the principal."""
def removeRoleFromPrincipal(role_id, principal_id):
- """ remove a role from the principal """
+ """Remove a role from the principal."""
def unsetRoleForPrincipal(role_id, principal_id):
- """ unset the role for the principal
- """
+ """Unset the role for the principal."""
class IRolePermissionMap(Interface):
@@ -327,7 +327,7 @@
"""
def getRolesAndPermissions():
- """Return a sequence of (principal_id, role_id, setting) here.
+ """Return a sequence of (permission_id, role_id, setting) here.
The settings are returned as a sequence of permission, role,
setting tuples.
@@ -337,7 +337,6 @@
"""
-
class IRolePermissionManager(IRolePermissionMap):
"""Management interface for mappings between roles and permissions."""
@@ -391,8 +390,6 @@
of a list of three tuple containing
(permission id, principal id, setting)
"""
-
-
class IPrincipalPermissionManager(IPrincipalPermissionMap):