Back to index

plone3  3.1.7
Public Member Functions | Private Attributes
plone.contentrules.engine.assignments.RuleAssignmentManager Class Reference
Inheritance diagram for plone.contentrules.engine.assignments.RuleAssignmentManager:
Inheritance graph
Collaboration diagram for plone.contentrules.engine.assignments.RuleAssignmentManager:
Collaboration graph

List of all members.

Public Member Functions

def __init__
def getRules

Private Attributes


Detailed Description

A context-specific container for rule assignments

Definition at line 30 of file

Constructor & Destructor Documentation

Definition at line 35 of file

00036     def __init__(self):
00037         # XXX: This depends on implementation detail in OrderedContainer,
00038         # but it uses a PersistentDict, which sucks :-/
00039         OrderedContainer.__init__(self)
00040         self._data = OOBTree()

Here is the caller graph for this function:

Member Function Documentation

def plone.contentrules.engine.assignments.RuleAssignmentManager.getRules (   self,
  bubbled = False 

Definition at line 41 of file

00042     def getRules(self, event, bubbled=False):
00043         rules = []
00044         storage = queryUtility(IRuleStorage)
00045         if storage is not None:
00046             for a in self.values():
00047                 if a.enabled and (bubbled == False or a.bubbles):
00048                     r = storage.get(a.__name__, None)
00049                     if r is not None and r.enabled and r.event.providedBy(event):
00050                         rules.append(r)
00051         return rules
00053 @adapter(IRuleAssignable)

Here is the call graph for this function:

Member Data Documentation

Definition at line 39 of file

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