Back to index

plone3  3.1.7
Public Member Functions | Private Attributes
PluggableAuthService.plugins.ZODBGroupManager._ZODBGroupFilter Class Reference

List of all members.

Public Member Functions

def __init__
def __call__

Private Attributes

 _filter_ids
 _filter_titles

Detailed Description

Definition at line 469 of file ZODBGroupManager.py.


Constructor & Destructor Documentation

def PluggableAuthService.plugins.ZODBGroupManager._ZODBGroupFilter.__init__ (   self,
  id = None,
  title = None,
  kw 
)

Definition at line 475 of file ZODBGroupManager.py.

00475 
00476                 ):
00477 
00478         self._filter_ids = id
00479         self._filter_titles = title


Member Function Documentation

Definition at line 480 of file ZODBGroupManager.py.

00480 
00481     def __call__( self, group_info ):
00482 
00483         if self._filter_ids:
00484 
00485             key = 'id'
00486             to_test = self._filter_ids
00487 
00488         elif self._filter_titles:
00489 
00490             key = 'title'
00491             to_test = self._filter_titles
00492 
00493         else:
00494             return 1 # TODO:  try using 'kw'
00495 
00496         value = group_info.get( key )
00497 
00498         if not value:
00499             return 0
00500 
00501         for contained in to_test:
00502             if value.lower().find( contained.lower() ) >= 0:
00503                 return 1
00504 
00505         return 0

Here is the caller graph for this function:


Member Data Documentation

Definition at line 477 of file ZODBGroupManager.py.

Definition at line 478 of file ZODBGroupManager.py.


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