Back to index

plone3  3.1.7
Public Member Functions | Public Attributes | Static Public Attributes
PluggableAuthService.plugins.LocalRolePlugin.LocalRolePlugin Class Reference
Inheritance diagram for PluggableAuthService.plugins.LocalRolePlugin.LocalRolePlugin:
Inheritance graph
[legend]
Collaboration diagram for PluggableAuthService.plugins.LocalRolePlugin.LocalRolePlugin:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def getRolesForPrincipal

Public Attributes

 title

Static Public Attributes

string meta_type = 'Local Role Plugin'
tuple security = ClassSecurityInfo()

Detailed Description

Provide roles during Authentication from local roles
    assignments made on the root object.

Definition at line 49 of file LocalRolePlugin.py.


Constructor & Destructor Documentation

Definition at line 57 of file LocalRolePlugin.py.

00057 
00058     def __init__( self, id, title=None ):
00059         self._setId( id )
00060         self.title = title

Here is the call graph for this function:


Member Function Documentation

See IRolesPlugin.

Definition at line 65 of file LocalRolePlugin.py.

00065 
00066     def getRolesForPrincipal( self, principal, request=None ):
00067 
00068         """ See IRolesPlugin.
00069         """
00070         local_roles = getattr( self.getPhysicalRoot()
00071                              , '__ac_local_roles__'
00072                              , None )
00073         if local_roles is None:
00074             return None
00075         return local_roles.get( principal.getId() )
00076 
00077 classImplements( LocalRolePlugin
00078                , ILocalRolePlugin
00079                , IRolesPlugin
00080                )
00081 
00082 InitializeClass( LocalRolePlugin )

Here is the call graph for this function:


Member Data Documentation

Definition at line 54 of file LocalRolePlugin.py.

Definition at line 55 of file LocalRolePlugin.py.

Definition at line 59 of file LocalRolePlugin.py.


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