Back to index

plone3  3.1.7
Public Member Functions | Public Attributes
plone.contentrules.engine.executor.RuleExecutor Class Reference

List of all members.

Public Member Functions

def __init__
def __call__

Public Attributes


Detailed Description

An object that can execute rules in its context.

Definition at line 12 of file

Constructor & Destructor Documentation

Definition at line 19 of file

00020     def __init__(self, context):
00021         self.context = context

Here is the caller graph for this function:

Member Function Documentation

def plone.contentrules.engine.executor.RuleExecutor.__call__ (   self,
  bubbled = False,
  rule_filter = None 

Definition at line 22 of file

00023     def __call__(self, event, bubbled=False, rule_filter=None):
00024         assignments = IRuleAssignmentManager(self.context)
00025         for rule in assignments.getRules(event, bubbled=bubbled):
00026             if rule_filter is None or rule_filter(self.context, rule, event) == True:
00027                 executable = getMultiAdapter((self.context, rule, event), IExecutable)
00028                 executable()
00029                 if rule.stop:
00030                     raise StopRule(rule)

Here is the caller graph for this function:

Member Data Documentation

Definition at line 20 of file

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