Back to index

plone3  3.1.7
Public Member Functions | Public Attributes
plone.contentrules.rule.rule.RuleExecutable Class Reference

List of all members.

Public Member Functions

def __init__
def __call__

Public Attributes


Detailed Description

An adapter capable of executing a rule

Definition at line 29 of file

Constructor & Destructor Documentation

def plone.contentrules.rule.rule.RuleExecutable.__init__ (   self,

Definition at line 36 of file

00037     def __init__(self, context, rule, event):
00038         self.context = context
00039         self.rule = rule
00040         self.event = event

Here is the caller graph for this function:

Member Function Documentation

Definition at line 41 of file

00042     def __call__(self):
00043         for condition in self.rule.conditions:
00044             executable = getMultiAdapter((self.context, condition, self.event), IExecutable)
00045             if not executable():
00046                 return False
00047         for action in self.rule.actions:
00048             executable = getMultiAdapter((self.context, action, self.event), IExecutable)
00049             if not executable():
00050                 return False
        return True

Here is the caller graph for this function:

Member Data Documentation

Definition at line 37 of file

Definition at line 39 of file

Definition at line 38 of file

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