[Zope3-checkins] CVS: Zope3/src/zope/app/browser/workflow/stateful - definition.py:1.7.6.1

Jim Fulton jim at zope.com
Fri Sep 12 15:15:49 EDT 2003


Update of /cvs-repository/Zope3/src/zope/app/browser/workflow/stateful
In directory cvs.zope.org:/tmp/cvs-serv13470/src/zope/app/browser/workflow/stateful

Modified Files:
      Tag: parentgeddon-branch
	definition.py 
Log Message:
Can't have the tests passing, can we?

=== Zope3/src/zope/app/browser/workflow/stateful/definition.py 1.7 => 1.7.6.1 ===
--- Zope3/src/zope/app/browser/workflow/stateful/definition.py:1.7	Fri Aug 15 20:43:16 2003
+++ Zope3/src/zope/app/browser/workflow/stateful/definition.py	Fri Sep 12 15:15:18 2003
@@ -130,7 +130,7 @@
 
     def action(self, id):
         state = State()
-        self.context.setObject(id, state)
+        self.context[id] = state
         return self.request.response.redirect(self.request.URL[-2])
 
 
@@ -147,5 +147,5 @@
         condition = condition or None
         permission = permission or None
         transition = Transition(source, destination, condition, permission)
-        self.context.setObject(id, transition)
+        self.context[id] = transition
         return self.request.response.redirect(self.request.URL[-2])




More information about the Zope3-Checkins mailing list