Back to index

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

List of all members.

Public Member Functions

def __init__
def enumerateUsers

Public Attributes

 PLUGINID
 users

Detailed Description

Definition at line 64 of file test_PluggableAuthService.py.


Constructor & Destructor Documentation

Definition at line 66 of file test_PluggableAuthService.py.

00066 
00067     def __init__( self, pluginid, *users ):
00068 
00069         self.PLUGINID = pluginid
00070 
00071         self.users = users


Member Function Documentation

def PluggableAuthService.tests.test_PluggableAuthService.DummyMultiUserEnumerator.enumerateUsers (   self,
  id = None,
  login = None,
  exact_match = False 
)

Definition at line 73 of file test_PluggableAuthService.py.

00073 
00074                         exact_match=False ):
00075 
00076         results = []
00077 
00078         for info in self.users:
00079             id_match = False
00080             if id:
00081                 if exact_match:
00082                     if info['id'] == id:
00083                         id_match = True
00084                 elif info['id'].find(id) != -1:
00085                     id_match = True
00086             else:
00087                 id_match = True
00088 
00089             login_match = False
00090             if login:
00091                 if exact_match:
00092                     if info['login'] == login:
00093                         login_match = True
00094                 elif info['login'].find(login) != -1:
00095                     login_match = True
00096             else:
00097                 login_match = True
00098 
00099             if id_match and login_match:
00100                 results.append(info)
00101 
00102         return tuple(results)


Member Data Documentation

Definition at line 68 of file test_PluggableAuthService.py.

Definition at line 70 of file test_PluggableAuthService.py.


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