[Zope3-checkins] CVS: Zope3/src/zope/app/interfaces/workflow - __init__.py:1.13
Ulrich Eck
ueck@net-labs.de
Wed, 9 Apr 2003 14:34:30 -0400
Update of /cvs-repository/Zope3/src/zope/app/interfaces/workflow
In directory cvs.zope.org:/tmp/cvs-serv18440
Modified Files:
__init__.py
Log Message:
added a parameter definition_name to createProcessInstance
that eases the implementation alot and avoids some Wrapper-hacks
=== Zope3/src/zope/app/interfaces/workflow/__init__.py 1.12 => 1.13 ===
--- Zope3/src/zope/app/interfaces/workflow/__init__.py:1.12 Fri Mar 28 13:17:02 2003
+++ Zope3/src/zope/app/interfaces/workflow/__init__.py Wed Apr 9 14:34:29 2003
@@ -74,7 +74,7 @@
name = Attribute("""The name of the ProcessDefinition""")
- def createProcessInstance():
+ def createProcessInstance(definition_name):
"""Create a new process instance for this process definition.
Returns an IProcessInstance.
@@ -176,7 +176,7 @@
"""Handler for Import of ProcessDefinitions.
"""
- def canImport(data):
+ def canImport(context, data):
"""check if handler can import a processdefinition
based on the data given.
"""