[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/Workflow/Stateful - ProcessDefinition.py:1.1.2.3
Florent Guillaume
fg@nuxeo.com
Thu, 5 Dec 2002 11:09:10 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/App/Workflow/Stateful
In directory cvs.zope.org:/tmp/cvs-serv13323
Modified Files:
Tag: sprintathon-wf-branch
ProcessDefinition.py
Log Message:
Fix (dummy) implementation according to interface and make tests pass.
=== Zope3/lib/python/Zope/App/Workflow/Stateful/ProcessDefinition.py 1.1.2.2 => 1.1.2.3 ===
--- Zope3/lib/python/Zope/App/Workflow/Stateful/ProcessDefinition.py:1.1.2.2 Thu Dec 5 11:00:14 2002
+++ Zope3/lib/python/Zope/App/Workflow/Stateful/ProcessDefinition.py Thu Dec 5 11:09:08 2002
@@ -53,33 +53,29 @@
# Implementation methods for interface
# Zope.App.Workflow.IStatefulProcessDefinition
- def createProcessInstance(self):
- return None
-
- def addState(self, state):
+ def addState(self, name, state):
pass
- def setInitialState(self, id):
- pass
-
- def deleteState(self, id):
+ def removeState(self, name):
pass
def getStateNames(self):
return None
- def addTransition(self, transition):
+ def getInitialStateName(self):
+ return None
+
+ def addTransition(self, name, transition):
pass
-
- def deleteTransition(self, id):
+
+ def removeTransition(self, name):
pass
def getTransitionNames(self):
return None
- def getInitialStateName(self):
+ def createProcessInstance(self):
return None
-
#
############################################################