[Zope3-checkins] CVS: Zope3/src/zope/app/workflow/stateful -
contentworkflow.py:1.7.10.2 definition.py:1.6.10.2
Jim Fulton
jim at zope.com
Tue Sep 9 15:08:52 EDT 2003
Update of /cvs-repository/Zope3/src/zope/app/workflow/stateful
In directory cvs.zope.org:/tmp/cvs-serv4989/src/zope/app/workflow/stateful
Modified Files:
Tag: parentgeddon-branch
contentworkflow.py definition.py
Log Message:
got more tests to pass on branch
=== Zope3/src/zope/app/workflow/stateful/contentworkflow.py 1.7.10.1 => 1.7.10.2 ===
--- Zope3/src/zope/app/workflow/stateful/contentworkflow.py:1.7.10.1 Mon Sep 8 14:21:54 2003
+++ Zope3/src/zope/app/workflow/stateful/contentworkflow.py Tue Sep 9 14:08:21 2003
@@ -31,9 +31,10 @@
from zope.app.interfaces.workflow import IProcessInstanceContainerAdaptable
from zope.app.interfaces.workflow.stateful import IContentWorkflowsManager
from zope.interface import implements, providedBy
+from zope.app.container.contained import Contained
-class ContentWorkflowsManager(Persistent):
+class ContentWorkflowsManager(Persistent, Contained):
implements(IContentWorkflowsManager, ISubscriber)
=== Zope3/src/zope/app/workflow/stateful/definition.py 1.6.10.1 => 1.6.10.2 ===
--- Zope3/src/zope/app/workflow/stateful/definition.py:1.6.10.1 Mon Sep 8 14:21:54 2003
+++ Zope3/src/zope/app/workflow/stateful/definition.py Tue Sep 9 14:08:21 2003
@@ -203,6 +203,13 @@
def createProcessInstance(self, definition_name):
"""See workflow.IProcessDefinition"""
pi_obj = StatefulProcessInstance(definition_name)
+
+ # XXX
+ # Process instances need to have a place, so they can look things
+ # up. It's not clear to me (Jim) what place they should have.
+ pi_obj.__parent__ = self
+
+
pi_obj.initialize()
return pi_obj
More information about the Zope3-Checkins
mailing list