Back to index

plone3  3.1.7
Classes | Functions
CMFCore.tests.test_WorkflowTool Namespace Reference

Classes

class  Dummy
class  DummyWorkflow
class  DummyContent
class  DummyNotReallyContent
class  DummyTypeInfo
class  DummyTypesTool
class  WorkflowToolTests

Functions

def notifyBeforeHandler
def notifySuccessHandler
def notifyExceptionHandler
def test_suite

Function Documentation

Definition at line 113 of file test_WorkflowTool.py.

00113 
00114 def notifyBeforeHandler(evt):
00115     evt.workflow.notified( 'before-evt' ).append( (evt.object, evt.action) )
00116 
@adapter(IActionSucceededEvent)

Definition at line 122 of file test_WorkflowTool.py.

00122 
00123 def notifyExceptionHandler(evt):
00124     evt.workflow.notified( 'exception-evt' ).append( (evt.object, evt.action,
00125                                                       evt.exc) )

Definition at line 117 of file test_WorkflowTool.py.

00117 
00118 def notifySuccessHandler(evt):
00119     evt.workflow.notified( 'success-evt' ).append( (evt.object, evt.action,
00120                                                     evt.result ) )
00121 
@adapter(IActionRaisedExceptionEvent)

Definition at line 423 of file test_WorkflowTool.py.

00423 
00424 def test_suite():
00425     return unittest.TestSuite((
00426         unittest.makeSuite(WorkflowToolTests),
00427         ))