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

Florent Guillaume fg@nuxeo.com
Wed, 4 Dec 2002 06:21:46 -0500


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

Modified Files:
      Tag: sprintathon-wf-branch
	WorkflowService.py 
Log Message:
Added a simple delegating version of createProcessInstance.


=== Zope3/lib/python/Zope/App/Workflow/WorkflowService.py 1.2.24.4 => 1.2.24.5 ===
--- Zope3/lib/python/Zope/App/Workflow/WorkflowService.py:1.2.24.4	Wed Dec  4 06:04:49 2002
+++ Zope3/lib/python/Zope/App/Workflow/WorkflowService.py	Wed Dec  4 06:21:46 2002
@@ -51,6 +51,12 @@
 
     getProcessDefinition = ContextMethod(getProcessDefinition)
 
+    def createProcessInstance(self, definition_name):
+        definition = self.getProcessDefinition(definition_name)
+        return definition.createProcessInstance()
+
+
+
     def queryConfigurations(self, definition_name, default=None):
         registry = self.__definitions.get(definition_name, default)
         return ContextWrapper(registry, self)