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

Jim Fulton jim at zope.com
Sun Sep 21 13:31:43 EDT 2003


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

Modified Files:
	definition.py 
Log Message:
Changed to use __setitem__ rather than setObject


=== Zope3/src/zope/app/browser/workflow/stateful/definition.py 1.7 => 1.8 ===
--- 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	Sun Sep 21 13:30:42 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