Back to index

plone3  3.1.7
Public Member Functions | Public Attributes
plone.app.contentrules.conditions.wfstate.WorkflowStateConditionExecutor Class Reference

List of all members.

Public Member Functions

def __init__
def __call__

Public Attributes

 context
 element
 event

Detailed Description

The executor for this condition.

Definition at line 38 of file wfstate.py.


Constructor & Destructor Documentation

def plone.app.contentrules.conditions.wfstate.WorkflowStateConditionExecutor.__init__ (   self,
  context,
  element,
  event 
)

Definition at line 44 of file wfstate.py.

00044 
00045     def __init__(self, context, element, event):
00046         self.context = context
00047         self.element = element
00048         self.event = event

Here is the caller graph for this function:


Member Function Documentation

Definition at line 49 of file wfstate.py.

00049 
00050     def __call__(self):
00051         portal_workflow = getToolByName(self.context, 'portal_workflow', None)
00052         if portal_workflow is None:
00053             return False
00054         state = portal_workflow.getInfoFor(self.event.object, 'review_state', None)
00055         if state is None:
00056             return False
00057         return state in self.element.wf_states
        

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 45 of file wfstate.py.

Definition at line 46 of file wfstate.py.

Definition at line 47 of file wfstate.py.


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