Back to index

plone3  3.1.7
Public Member Functions
plone.contentrules.rule.interfaces.IExecutable Class Reference
Inheritance diagram for plone.contentrules.rule.interfaces.IExecutable:
Inheritance graph
[legend]
Collaboration diagram for plone.contentrules.rule.interfaces.IExecutable:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __call__

Detailed Description

An item which can be executed.

The execution of a rule involves the execution of each one of its elements
(i.e. conditions and actions). The IRule will be adapted to IExecutable in
order to execute it (e.g. by iterating through the elements and executing
each one), in a multi-adaptation of (context, rule, event), making it
possible to customise the execution based on the type of event or context.

Similarly, any object created via the 'addview' of an IRuleElement (i.e. 
the configuration object for that particular instance of that particular 
condition or action) will be adapted to IExecutable, in a multi-adaptation 
from (context, element, event),  in order to be executed when the rule that 
contains it is executed.

Definition at line 140 of file interfaces.py.


Member Function Documentation

Execute the rule or rule element.

If this method returns False, execution will stop. If it returns True,
execution will continue if possible.

Definition at line 156 of file interfaces.py.

00156 
00157     def __call__():
00158         """Execute the rule or rule element.
00159                 
00160         If this method returns False, execution will stop. If it returns True,
00161         execution will continue if possible.
00162         """

Here is the caller graph for this function:


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