[Zope3-checkins] CVS: Zope3/src/zope/app/workflow/stateful -
instance.py:1.14
Stephan Richter
srichter at cosmos.phy.tufts.edu
Sun Dec 14 23:31:36 EST 2003
Update of /cvs-repository/Zope3/src/zope/app/workflow/stateful
In directory cvs.zope.org:/tmp/cvs-serv19560/src/zope/app/workflow/stateful
Modified Files:
instance.py
Log Message:
Fixed workflows. After ContextWrappers were gone, we could not build a good path. Now I am grabbing an object that I know has all the right context.
=== Zope3/src/zope/app/workflow/stateful/instance.py 1.13 => 1.14 ===
--- Zope3/src/zope/app/workflow/stateful/instance.py:1.13 Mon Nov 3 23:04:24 2003
+++ Zope3/src/zope/app/workflow/stateful/instance.py Sun Dec 14 23:31:36 2003
@@ -20,6 +20,7 @@
from persistence import Persistent
from persistence.dict import PersistentDict
+from zope.app import zapi
from zope.app.event import publish
from zope.app.interfaces.workflow.stateful import AUTOMATIC
from zope.app.interfaces.workflow.stateful import IAfterTransitionEvent
@@ -215,7 +216,7 @@
def getProcessDefinition(self):
"""Get the ProcessDefinition object from WorkflowService."""
- svc = getService(self, "Workflows")
+ svc = getService(zapi.getParent(self).context, "Workflows")
return svc.getProcessDefinition(self.processDefinitionName)
# XXX this is not entirely tested
More information about the Zope3-Checkins
mailing list