Back to index

plone3  3.1.7
Public Member Functions | Private Attributes
PluggableAuthService.plugins.DynamicGroupsPlugin._DynamicGroupFilter Class Reference

List of all members.

Public Member Functions

def __init__
def __call__

Private Attributes

 _filter_ids

Detailed Description

Definition at line 526 of file DynamicGroupsPlugin.py.


Constructor & Destructor Documentation

Definition at line 531 of file DynamicGroupsPlugin.py.

00531 
00532                 ):
00533 
00534         self._filter_ids = id


Member Function Documentation

Definition at line 535 of file DynamicGroupsPlugin.py.

00535 
00536     def __call__( self, group_info ):
00537 
00538         if self._filter_ids:
00539 
00540             key = 'id'
00541 
00542         else:
00543             return 1 # TODO:  try using 'kw'
00544 
00545         value = group_info.get( key )
00546 
00547         if not value:
00548             return 0
00549 
00550         for id in self._filter_ids:
00551             if value.find( id ) >= 0:
00552                 return 1
00553 
00554         return 0

Here is the caller graph for this function:


Member Data Documentation

Definition at line 533 of file DynamicGroupsPlugin.py.


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