[Zope3-checkins] CVS: Zope3/src/zope/app/workflow/stateful -
contentworkflow.py:1.7.10.3 definition.py:1.6.10.3
Jim Fulton
jim at zope.com
Fri Sep 12 15:16:10 EDT 2003
Update of /cvs-repository/Zope3/src/zope/app/workflow/stateful
In directory cvs.zope.org:/tmp/cvs-serv13470/src/zope/app/workflow/stateful
Modified Files:
Tag: parentgeddon-branch
contentworkflow.py definition.py
Log Message:
Can't have the tests passing, can we?
=== Zope3/src/zope/app/workflow/stateful/contentworkflow.py 1.7.10.2 => 1.7.10.3 ===
--- Zope3/src/zope/app/workflow/stateful/contentworkflow.py:1.7.10.2 Tue Sep 9 14:08:21 2003
+++ Zope3/src/zope/app/workflow/stateful/contentworkflow.py Fri Sep 12 15:15:39 2003
@@ -75,7 +75,7 @@
except KeyError:
# No registered PD with that name..
continue
- pi_container.setObject(pd_name, pi)
+ pi_container[pd_name] = pi
=== Zope3/src/zope/app/workflow/stateful/definition.py 1.6.10.2 => 1.6.10.3 ===
--- Zope3/src/zope/app/workflow/stateful/definition.py:1.6.10.2 Tue Sep 9 14:08:21 2003
+++ Zope3/src/zope/app/workflow/stateful/definition.py Fri Sep 12 15:15:39 2003
@@ -134,7 +134,7 @@
super(StatefulProcessDefinition, self).__init__()
self.__states = StatesContainer()
initial = State()
- self.__states.setObject(self.getInitialStateName(), initial)
+ self.__states[self.getInitialStateName()] = initial
self.__transitions = TransitionsContainer()
self.__schema = None
# See workflow.stateful.IStatefulProcessDefinition
@@ -164,7 +164,7 @@
"""See workflow.stateful.IStatefulProcessDefinition"""
if name in self.states:
raise KeyError, name
- self.states.setObject(name, state)
+ self.states[name] = state
def getState(self, name):
"""See workflow.stateful.IStatefulProcessDefinition"""
@@ -186,7 +186,7 @@
"""See workflow.stateful.IStatefulProcessDefinition"""
if name in self.transitions:
raise KeyError, name
- self.transitions.setObject(name, transition)
+ self.transitions[name] = transition
def getTransition(self, name):
"""See workflow.stateful.IStatefulProcessDefinition"""
More information about the Zope3-Checkins
mailing list