Back to index

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

List of all members.

Public Member Functions

def __init__
def enumerateUsers

Public Attributes

 PLUGINID
 identifier

Private Attributes

 _user_id
 _login

Detailed Description

Definition at line 32 of file test_PluggableAuthService.py.


Constructor & Destructor Documentation

Definition at line 34 of file test_PluggableAuthService.py.

00034 
00035     def __init__( self, user_id, login=None ):
00036 
00037         self._user_id = self.PLUGINID = user_id
00038 
00039         if login is None:
00040             login = user_id
00041 
00042         self._login = login
00043         self.identifier = None


Member Function Documentation

Definition at line 44 of file test_PluggableAuthService.py.

00044 
00045     def enumerateUsers( self, **kw ):
00046 
00047         _id = self._user_id
00048 
00049         if self.identifier is not None:
00050             _id = "%s%s" % (self.identifier, self._user_id)
00051 
00052         result = [ { 'id' : _id
00053                    , 'login' : self._login
00054                    , 'pluginid' : self.PLUGINID
00055                    } ]
00056 
00057         if kw.get( 'id' ) == _id:
00058             return tuple(result)
00059 
00060         if kw.get( 'login' ) == self._login:
00061             return tuple(result)
00062 
00063         return ()


Member Data Documentation


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