Back to index

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

List of all members.

Public Member Functions

def __init__
def setKnownActions
def setKnownInfo
def didAction
def gaveInfo
def notified
def getCatalogVariablesFor
def updateRoleMappingsFor
def listObjectActions
def listGlobalActions
def isActionSupported
def doActionFor
def isInfoSupported
def getInfoFor
def notifyCreated
def notifyBefore
def notifySuccess
def notifyException
def getId

Static Public Attributes

string meta_type = 'DummyWorkflow'

Private Attributes

 _did_action
 _gave_info
 _notified
 _known_actions
 _known_info

Static Private Attributes

int _isAWorkflow = 1
tuple _known_actions = ()
tuple _known_info = ()

Detailed Description

Definition at line 43 of file test_WorkflowTool.py.


Constructor & Destructor Documentation

Reimplemented from CMFCore.tests.test_WorkflowTool.Dummy.

Definition at line 51 of file test_WorkflowTool.py.

00051 
00052     def __init__( self, id ):
00053         Dummy.__init__( self, id )
00054         self._did_action = {}
00055         self._gave_info = {}
00056         self._notified = {}


Member Function Documentation

Definition at line 63 of file test_WorkflowTool.py.

00063 
00064     def didAction( self, action ):
00065         return self._did_action.setdefault( action, [] )

Here is the caller graph for this function:

def CMFCore.tests.test_WorkflowTool.DummyWorkflow.doActionFor (   self,
  ob,
  action,
  args,
  kw 
)

Definition at line 90 of file test_WorkflowTool.py.

00090 
00091     def doActionFor( self, ob, action, *args, **kw ):
00092         self.didAction( action ).append( ob )

Here is the call graph for this function:

Definition at line 66 of file test_WorkflowTool.py.

00066 
00067     def gaveInfo( self, name ):
00068         return self._gave_info.setdefault( name, [] )

Here is the caller graph for this function:

Definition at line 75 of file test_WorkflowTool.py.

00075 
00076     def getCatalogVariablesFor( self, ob ):
00077         return { 'dummy' : '%s: %s' % ( self.getId(), ob.getId() ) }

Here is the call graph for this function:

Here is the caller graph for this function:

def CMFCore.tests.test_WorkflowTool.Dummy.getId (   self) [inherited]

Definition at line 39 of file test_WorkflowTool.py.

00039 
00040     def getId( self ):
00041         return self._id
00042 

def CMFCore.tests.test_WorkflowTool.DummyWorkflow.getInfoFor (   self,
  ob,
  name,
  default,
  args,
  kw 
)

Definition at line 96 of file test_WorkflowTool.py.

00096 
00097     def getInfoFor( self, ob, name, default, *args, **kw ):
00098         self.gaveInfo( name ).append( ob )
00099         return name in self._known_info and 1 or 0

Here is the call graph for this function:

Definition at line 87 of file test_WorkflowTool.py.

00087 
00088     def isActionSupported( self, ob, action ):
00089         return action in self._known_actions

Definition at line 93 of file test_WorkflowTool.py.

00093 
00094     def isInfoSupported( self, ob, name ):
00095         return name in self._known_info

Definition at line 84 of file test_WorkflowTool.py.

00084 
00085     def listGlobalActions( self, info ):
00086         return () #XXX

Definition at line 81 of file test_WorkflowTool.py.

00081 
00082     def listObjectActions( self, info ):
00083         return () #XXX

Definition at line 69 of file test_WorkflowTool.py.

00069 
00070     def notified( self, name ):
00071         return self._notified.setdefault( name, [] )

Here is the caller graph for this function:

Definition at line 103 of file test_WorkflowTool.py.

00103 
00104     def notifyBefore( self, ob, action ):
00105         self.notified( 'before' ).append( ( ob, action ) )

Here is the call graph for this function:

Definition at line 100 of file test_WorkflowTool.py.

00100 
00101     def notifyCreated( self, ob ):
00102         self.notified( 'created' ).append( ( ob, ) )

Here is the call graph for this function:

def CMFCore.tests.test_WorkflowTool.DummyWorkflow.notifyException (   self,
  ob,
  action,
  exc 
)

Definition at line 109 of file test_WorkflowTool.py.

00109 
00110     def notifyException( self, ob, action, exc ):
00111         self.notified( 'exception' ).append( ( ob, action, exc ) )
00112 
@adapter(IActionWillBeInvokedEvent)

Here is the call graph for this function:

def CMFCore.tests.test_WorkflowTool.DummyWorkflow.notifySuccess (   self,
  ob,
  action,
  result 
)

Definition at line 106 of file test_WorkflowTool.py.

00106 
00107     def notifySuccess( self, ob, action, result ):
00108         self.notified( 'success' ).append( ( ob, action, result ) )

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 57 of file test_WorkflowTool.py.

00057 
00058     def setKnownActions( self, known_actions ):
00059         self._known_actions = known_actions

Definition at line 60 of file test_WorkflowTool.py.

00060 
00061     def setKnownInfo( self, known_info ):
00062         self._known_info = known_info

Definition at line 78 of file test_WorkflowTool.py.

00078 
00079     def updateRoleMappingsFor( self, ob ):
00080         pass

Here is the caller graph for this function:


Member Data Documentation

Definition at line 53 of file test_WorkflowTool.py.

Definition at line 54 of file test_WorkflowTool.py.

Definition at line 47 of file test_WorkflowTool.py.

Definition at line 48 of file test_WorkflowTool.py.

Definition at line 58 of file test_WorkflowTool.py.

Definition at line 49 of file test_WorkflowTool.py.

Definition at line 61 of file test_WorkflowTool.py.

Definition at line 55 of file test_WorkflowTool.py.

Definition at line 46 of file test_WorkflowTool.py.


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