Back to index

plone3  3.1.7
Public Member Functions | Public Attributes
PlonePAS.plugins.gruf.GroupFilter Class Reference

List of all members.

Public Member Functions

def __init__
def __call__

Public Attributes

 group_ids
 exact_match

Detailed Description

Definition at line 48 of file gruf.py.


Constructor & Destructor Documentation

def PlonePAS.plugins.gruf.GroupFilter.__init__ (   self,
  id,
  exact_match,
  kw 
)

Definition at line 50 of file gruf.py.

00050 
00051     def __init__(self,  id, exact_match, **kw):
00052         if isinstance( id, str):
00053             id = [ id ]
00054         self.group_ids = id
00055         self.exact_match = not not exact_match


Member Function Documentation

def PlonePAS.plugins.gruf.GroupFilter.__call__ (   self,
  group 
)

Definition at line 56 of file gruf.py.

00056 
00057     def __call__(self, group):
00058         tid = group.getId()
00059         if self.exact_match:
00060             if tid in self.group_ids:
00061                 return True
00062             return False
00063         for value in self.group_ids:
00064             if value.find( tid ) >= 0:
00065                 return True
00066 

Here is the caller graph for this function:


Member Data Documentation

Definition at line 54 of file gruf.py.

Definition at line 53 of file gruf.py.


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