Back to index

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

List of all members.

Public Member Functions

def __init__
def enumerateGroups

Public Attributes

 PLUGINID
 identifier

Private Attributes

 _group_id

Detailed Description

Definition at line 103 of file test_PluggableAuthService.py.


Constructor & Destructor Documentation

Definition at line 105 of file test_PluggableAuthService.py.

00105 
00106     def __init__( self, group_id ):
00107 
00108         self._group_id = self.PLUGINID = group_id
00109         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 
)

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 ()


Member Data Documentation


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