Back to index

plone3  3.1.7
Public Member Functions | Private Attributes
PluggableAuthService.plugins.tests.test_RecursiveGroupsPlugin.DummyGroupsManager Class Reference
Inheritance diagram for PluggableAuthService.plugins.tests.test_RecursiveGroupsPlugin.DummyGroupsManager:
Inheritance graph
[legend]
Collaboration diagram for PluggableAuthService.plugins.tests.test_RecursiveGroupsPlugin.DummyGroupsManager:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def getId
def addGroup
def addPrincipalToGroup
def getGroupsForPrincipal

Private Attributes

 _id
 _groups
 _prin_to_group

Detailed Description

Definition at line 57 of file test_RecursiveGroupsPlugin.py.


Constructor & Destructor Documentation

Definition at line 59 of file test_RecursiveGroupsPlugin.py.

00059 
00060     def __init__( self, id ):
00061         self._id = id
00062         self._groups = {}
00063         self._prin_to_group = {}


Member Function Documentation

Definition at line 67 of file test_RecursiveGroupsPlugin.py.

00067 
00068     def addGroup( self, group_id ):
00069         self._groups[group_id] = 1
        

Here is the caller graph for this function:

Definition at line 70 of file test_RecursiveGroupsPlugin.py.

00070 
00071     def addPrincipalToGroup( self, prin, group_id ):
00072         prin_id = prin.getId()
00073         already_in = self._prin_to_group.get( prin_id, () )
00074         if group_id not in already_in:
00075             self._prin_to_group[prin_id] = already_in + ( group_id, )

Here is the caller graph for this function:

Definition at line 76 of file test_RecursiveGroupsPlugin.py.

00076 
00077     def getGroupsForPrincipal( self, prin, request=None ):
00078         prin_id = prin.getId()
00079         return self._prin_to_group.get( prin_id, () )

Definition at line 64 of file test_RecursiveGroupsPlugin.py.

00064 
00065     def getId( self ):
00066         return self._id
    

Member Data Documentation

Definition at line 61 of file test_RecursiveGroupsPlugin.py.

Definition at line 60 of file test_RecursiveGroupsPlugin.py.

Definition at line 62 of file test_RecursiveGroupsPlugin.py.


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