Back to index

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

List of all members.

Public Member Functions

def __init__
def enumerateUsers
def enumerateGroups

Public Attributes

 identifier

Static Public Attributes

string PLUGINID = 'super'

Private Attributes

 _user_id
 _login
 _group_id

Detailed Description

Definition at line 132 of file test_PluggableAuthService.py.


Constructor & Destructor Documentation

def PluggableAuthService.tests.test_PluggableAuthService.DummySuperEnumerator.__init__ (   self,
  user_id,
  login,
  group_id 
)

Definition at line 136 of file test_PluggableAuthService.py.

00136 
00137     def __init__(self, user_id, login, group_id):
00138         self._user_id = user_id
00139         self._login = login
00140         self._group_id = group_id
00141         self.identifier = None


Member Function Documentation

def PluggableAuthService.tests.test_PluggableAuthService.DummyGroupEnumerator.enumerateGroups (   self,
  id = None,
  exact_match = True,
  sort_by = None,
  max_results = None,
  kw 
) [inherited]

Definition at line 116 of file test_PluggableAuthService.py.

00116 
00117                        ):
00118 
00119         _id = self._group_id
00120 
00121         if self.identifier is not None:
00122             _id = "%s%s" % (self.identifier, self._group_id)
00123 
00124         result = [ { 'id' : _id
00125                    , 'pluginid' : self.PLUGINID
00126                    } ]
00127 
00128         if id:
00129             if _id.find( id ) >= 0:
00130                 return tuple(result)
00131         return ()

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: