[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/Workflow - WorkflowService.py:1.2.24.7

Ulrich Eck ueck@net-labs.de
Wed, 4 Dec 2002 12:15:19 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/App/Workflow
In directory cvs.zope.org:/tmp/cvs-serv17582

Modified Files:
      Tag: sprintathon-wf-branch
	WorkflowService.py 
Log Message:
finally have working unittests for workflowservice


=== Zope3/lib/python/Zope/App/Workflow/WorkflowService.py 1.2.24.6 => 1.2.24.7 ===
--- Zope3/lib/python/Zope/App/Workflow/WorkflowService.py:1.2.24.6	Wed Dec  4 12:06:56 2002
+++ Zope3/lib/python/Zope/App/Workflow/WorkflowService.py	Wed Dec  4 12:15:19 2002
@@ -49,7 +49,7 @@
             return definition
         service = getService(self, IWorkflowService)
         if service is not None:
-            return service.getDefinition(name)
+            return service.getProcessDefinition(name)
         raise ComponentLookupError
 
     getProcessDefinition = ContextMethod(getProcessDefinition)
@@ -81,8 +81,9 @@
         configuration = registry.active()
         if configuration is None:
             return None
-        return configuration.getDefinition()
+        return configuration.getProcessDefinition()
 
+    getBoundProcessDefinition = ContextMethod(getBoundProcessDefinition)
 
     def queryConfigurationsFor(self, configuration, default=None):
         return self.queryConfigurations(configuration.definitionName, default)