Back to index

plone3  3.1.7
Public Member Functions
PlonePAS.interfaces.plugins.ILocalRolesPlugin Class Reference
Inheritance diagram for PlonePAS.interfaces.plugins.ILocalRolesPlugin:
Inheritance graph
[legend]
Collaboration diagram for PlonePAS.interfaces.plugins.ILocalRolesPlugin:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def getRolesInContext
def checkLocalRolesAllowed
def getAllLocalRolesInContext

Detailed Description

Plugin for determining a user's local roles and object access
based on local roles.

Definition at line 45 of file plugins.py.


Member Function Documentation

def PlonePAS.interfaces.plugins.ILocalRolesPlugin.checkLocalRolesAllowed (   user,
  object,
  object_roles 
)
Check whether the user has access to object based
on local roles. access is determined by a user's local roles
including one of the object roles.

Definition at line 64 of file plugins.py.

00064 
00065     def checkLocalRolesAllowed(user, object, object_roles):
00066         """
00067         Check whether the user has access to object based
00068         on local roles. access is determined by a user's local roles
00069         including one of the object roles.
00070         """

Return active all local roles in a context.

The roles are returned in a dictionary mapping a principal (a
user or a group) to the set of roles assigned to it.

Definition at line 71 of file plugins.py.

00071 
00072     def getAllLocalRolesInContext(object):
00073         """
00074         Return active all local roles in a context.
00075 
00076         The roles are returned in a dictionary mapping a principal (a
00077         user or a group) to the set of roles assigned to it.
00078         """
00079 
00080 

Plugin for determining a user's local roles and object access
based on local roles.
Return the list of roles assigned to the user.

o Include local roles assigned in context of the passed-in object.

o Include *both* local roles assigned directly to us *and* those
  assigned to our groups.

o Ripped off from AccessControl.User.BasicUser, which provides
  no other extension mechanism. :(

Definition at line 51 of file plugins.py.

00051 
00052     def getRolesInContext(user, object):
00053         """
00054         Return the list of roles assigned to the user.
00055 
00056         o Include local roles assigned in context of the passed-in object.
00057 
00058         o Include *both* local roles assigned directly to us *and* those
00059           assigned to our groups.
00060 
00061         o Ripped off from AccessControl.User.BasicUser, which provides
00062           no other extension mechanism. :(
00063         """


The documentation for this class was generated from the following file: