[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/Workflow/Stateful - BasicStatefulProcessDefinition.py:1.1.2.2
Grégoire Weber
zope@i-con.ch
Fri, 6 Dec 2002 07:44:35 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/App/Workflow/Stateful
In directory cvs.zope.org:/tmp/cvs-serv29062/Stateful
Modified Files:
Tag: sprintathon-wf-branch
BasicStatefulProcessDefinition.py
Log Message:
removed self in super(...).__init__(self), fixed copy paste bug
=== Zope3/lib/python/Zope/App/Workflow/Stateful/BasicStatefulProcessDefinition.py 1.1.2.1 => 1.1.2.2 ===
--- Zope3/lib/python/Zope/App/Workflow/Stateful/BasicStatefulProcessDefinition.py:1.1.2.1 Fri Dec 6 05:59:39 2002
+++ Zope3/lib/python/Zope/App/Workflow/Stateful/BasicStatefulProcessDefinition.py Fri Dec 6 07:44:35 2002
@@ -61,8 +61,8 @@
__implements__ = IStatefulProcessDefinition
def __init__(self):
- super(BasicStatefulProcessDefinition, self).__init__(self)
- self.__states = grPersistentDict()
+ super(BasicStatefulProcessDefinition, self).__init__()
+ self.__states = PersistentDict()
initial = BasicState()
self.__states[self.getInitialStateName()] = initial
self.__transitions = PersistentDict()
@@ -92,7 +92,7 @@
def addTransition(self, name, transition):
if name in self.__transitions:
raise KeyError, name
- self.__transitions[name] = state
+ self.__transitions[name] = transition
def getTransition(self, name):
return ContextWrapper(self.__transitions[name], self)