Back to index

plone3  3.1.7
Public Member Functions | Static Public Attributes | Private Attributes
CMFCore.exportimport.tests.test_workflow.DummyWorkflowTool Class Reference
Inheritance diagram for CMFCore.exportimport.tests.test_workflow.DummyWorkflowTool:
Inheritance graph
[legend]
Collaboration diagram for CMFCore.exportimport.tests.test_workflow.DummyWorkflowTool:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def getWorkflowIds
def getWorkflowById
def getDefaultChain
def setDefaultChain
def listChainOverrides
def setChainForPortalTypes

Static Public Attributes

string meta_type = 'Dummy Workflow Tool'

Private Attributes

 _default_chain
 _chains_by_type

Detailed Description

Definition at line 96 of file test_workflow.py.


Constructor & Destructor Documentation

def CMFCore.exportimport.tests.test_workflow.DummyWorkflowTool.__init__ (   self,
  id = 'portal_workflow' 
)

Definition at line 102 of file test_workflow.py.

00102 
00103     def __init__(self, id='portal_workflow'):
00104         Folder.__init__(self, id)
00105         self._default_chain = ()
00106         self._chains_by_type = {}


Member Function Documentation

Definition at line 113 of file test_workflow.py.

00113 
00114     def getDefaultChain(self):
00115         return self._default_chain

Here is the caller graph for this function:

Definition at line 110 of file test_workflow.py.

00110 
00111     def getWorkflowById(self, workflow_id):
00112         return self._getOb(workflow_id)

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 107 of file test_workflow.py.

00107 
00108     def getWorkflowIds(self):
00109         return self.objectIds()

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 120 of file test_workflow.py.

00120 
00121     def listChainOverrides(self):
00122         return sorted(self._chains_by_type.items())

def CMFCore.exportimport.tests.test_workflow.DummyWorkflowTool.setChainForPortalTypes (   self,
  pt_names,
  chain,
  verify = True 
)

Definition at line 123 of file test_workflow.py.

00123 
00124     def setChainForPortalTypes(self, pt_names, chain, verify=True):
00125         if chain is None:
00126             for pt_name in pt_names:
00127                 if pt_name in self._chains_by_type:
00128                     del self._chains_by_type[pt_name]
00129             return
00130 
00131         chain = chain.replace(',', ' ')
00132         chain = tuple(chain.split())
00133 
00134         for pt_name in pt_names:
00135             self._chains_by_type[pt_name] = chain
00136 

Definition at line 116 of file test_workflow.py.

00116 
00117     def setDefaultChain(self, chain):
00118         chain = chain.replace(',', ' ')
00119         self._default_chain = tuple(chain.split())


Member Data Documentation

Definition at line 105 of file test_workflow.py.

Definition at line 104 of file test_workflow.py.

Definition at line 100 of file test_workflow.py.


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