Back to index

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

List of all members.

Public Member Functions

def __init__
def getId
def getUserName
def getRoles
def __repr__

Private Member Functions

def _addRoles

Private Attributes

 _id
 _name
 _roles

Detailed Description

Definition at line 55 of file test_LocalRolePlugin.py.


Constructor & Destructor Documentation

def PluggableAuthService.plugins.tests.test_LocalRolePlugin.FauxUser.__init__ (   self,
  id,
  name = None,
  roles = {} 
)

Definition at line 57 of file test_LocalRolePlugin.py.

00057 
00058     def __init__( self, id, name=None, roles={} ):
00059 
00060         self._id = id
00061         self._name = name
00062         self._roles = roles


Member Function Documentation

Definition at line 79 of file test_LocalRolePlugin.py.

00079 
00080     def __repr__( self ):
00081 
00082         return '<FauxUser: %s>' % self._id

Definition at line 75 of file test_LocalRolePlugin.py.

00075 
00076     def _addRoles(self, roles):
00077         for role in roles:
00078             self._roles[role] = 1

Definition at line 63 of file test_LocalRolePlugin.py.

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

Definition at line 71 of file test_LocalRolePlugin.py.

00071 
00072     def getRoles( self ):
00073 
00074         return self._roles.keys()

Here is the caller graph for this function:

Definition at line 67 of file test_LocalRolePlugin.py.

00067 
00068     def getUserName( self ):
00069 
00070         return self._name

Here is the caller graph for this function:


Member Data Documentation

Definition at line 59 of file test_LocalRolePlugin.py.

Definition at line 60 of file test_LocalRolePlugin.py.

Definition at line 61 of file test_LocalRolePlugin.py.


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