[Zope3-checkins] CVS: Zope3/src/zope/app/workflow/interfaces -
__init__.py:1.4
Stephan Richter
srichter at cosmos.phy.tufts.edu
Wed Mar 3 15:21:05 EST 2004
Update of /cvs-repository/Zope3/src/zope/app/workflow/interfaces
In directory cvs.zope.org:/tmp/cvs-serv21735/src/zope/app/workflow/interfaces
Modified Files:
__init__.py
Log Message:
Converted process definitions from being arbitrary registerable components to
be local utilities. This drastically simplified the local workflow and process
definition implementation, since they do not have to worry about any
registration stuff anymore. What an improvement!
=== Zope3/src/zope/app/workflow/interfaces/__init__.py 1.3 => 1.4 ===
--- Zope3/src/zope/app/workflow/interfaces/__init__.py:1.3 Wed Mar 3 05:38:58 2004
+++ Zope3/src/zope/app/workflow/interfaces/__init__.py Wed Mar 3 15:20:34 2004
@@ -15,14 +15,10 @@
$Id$
"""
-from zope.interface import Interface
-from zope.interface import Attribute
+from zope.interface import Interface, Attribute
from zope.app.i18n import ZopeMessageIDFactory as _
from zope.app.container.interfaces import IContainer
from zope.app.event.interfaces import IEvent
-from zope.app.interfaces.services.registration \
- import INamedComponentRegistration
-from zope.app.interfaces.services.registration import ComponentPath
class IWorkflowEvent(IEvent):
@@ -46,19 +42,8 @@
def queryProcessDefinition(name, default=None):
"""Return the IProcessDefinition for the name or default."""
- def createProcessInstance(definition_name):
+ def createProcessInstance(name):
"""Create a process instance from a process definition."""
-
-
-class IProcessDefinitionRegistration(INamedComponentRegistration):
- """Registration for a workflow process definition."""
-
- componentPath = ComponentPath(
- title=_("Component path"),
- description=_("The physical path to the component"),
- required=True,
- readonly=True,
- )
class IProcessDefinition(Interface):
More information about the Zope3-Checkins
mailing list