Back to index

plone3  3.1.7
Public Member Functions | Private Attributes
PluggableAuthService.plugins.ZODBRoleManager._ZODBRoleFilter Class Reference

List of all members.

Public Member Functions

def __init__
def __call__

Private Attributes

 _filter_ids

Detailed Description

Definition at line 475 of file ZODBRoleManager.py.


Constructor & Destructor Documentation

Definition at line 477 of file ZODBRoleManager.py.

00477 
00478     def __init__( self, id=None, **kw ):
00479 
00480         self._filter_ids = id


Member Function Documentation

Definition at line 481 of file ZODBRoleManager.py.

00481 
00482     def __call__( self, role_info ):
00483 
00484         if self._filter_ids:
00485 
00486             key = 'id'
00487 
00488         else:
00489             return 1 # TODO:  try using 'kw'
00490 
00491         value = role_info.get( key )
00492 
00493         if not value:
00494             return False
00495 
00496         for id in self._filter_ids:
00497             if value.find( id ) >= 0:
00498                 return 1
00499 
00500         return False

Here is the caller graph for this function:


Member Data Documentation

Definition at line 479 of file ZODBRoleManager.py.


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