[Zope3-checkins] CVS: Zope3/src/zope/app/workflow/stateful/tests - test_instance.py:1.10

Stephan Richter srichter at cosmos.phy.tufts.edu
Mon Dec 15 08:33:18 EST 2003


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

Modified Files:
	test_instance.py 
Log Message:
My apologies for breaking the tests. I checked in late at night, that says 
all. I should know better.

But this surfaced a real problem with the workflow API that I need to 
address later; see the XXX comments in the diff.


=== Zope3/src/zope/app/workflow/stateful/tests/test_instance.py 1.9 => 1.10 ===
--- Zope3/src/zope/app/workflow/stateful/tests/test_instance.py:1.9	Sun Sep 21 13:34:02 2003
+++ Zope3/src/zope/app/workflow/stateful/tests/test_instance.py	Mon Dec 15 08:33:17 2003
@@ -390,10 +390,14 @@
                       k).status = ActiveStatus
 
         self.pd = self.service.getProcessDefinition('definition1')
-        # give the pi some context to find a service
+        # give the process instance container (pic) some context to find a
+        # service (while this is not correct, it resembles the current
+        # behavior.
+        from zope.app.workflow.instance import ProcessInstanceContainerAdapter
+        pic = ProcessInstanceContainerAdapter(self.rootFolder)
         self.pi = contained(
             self.service.createProcessInstance('definition1'),
-            self.rootFolder)
+            pic)
 
     def testPermissionedTranstitions(self):
         pi = self.pi




More information about the Zope3-Checkins mailing list