[Zope3-checkins] CVS: Zope3/src/zope/app/interfaces/workflow - __init__.py:1.4
Ulrich Eck
ueck@net-labs.de
Tue, 4 Feb 2003 16:35:44 -0500
Update of /cvs-repository/Zope3/src/zope/app/interfaces/workflow
In directory cvs.zope.org:/tmp/cvs-serv28293
Modified Files:
__init__.py
Log Message:
cleaned up IProcessInstanceContainer to use IContainer methods.
=== Zope3/src/zope/app/interfaces/workflow/__init__.py 1.3 => 1.4 ===
--- Zope3/src/zope/app/interfaces/workflow/__init__.py:1.3 Sun Feb 2 13:57:46 2003
+++ Zope3/src/zope/app/interfaces/workflow/__init__.py Tue Feb 4 16:35:42 2003
@@ -19,6 +19,7 @@
from zope.interface import Interface
from zope.interface import Attribute
+from zope.app.interfaces.container import IContainer
from zope.app.interfaces.services.configuration \
import INamedComponentConfiguration
@@ -83,33 +84,16 @@
Represents the instance of a process defined by a ProcessDefinition.
"""
- name = Attribute("The Name of the ProcessInstance.")
-
- status = Attribute("The state in which the workitem is.")
+ status = Attribute("The status in which the workitem is.")
processDefinitionName = Attribute("The process definition Name.")
-class IProcessInstanceContainer(Interface):
+class IProcessInstanceContainer(IContainer):
"""Workflow process instance container.
"""
- def addProcessInstance(name, pi):
- """Add the process instance, associated to name.
- """
-
- def getProcessInstance(name):
- """Get the process instance associated to the given name.
- """
-
- def getProcessInstanceNames():
- """Get the names associated to all process instances.
- """
-
- def delProcessInstance(name):
- """Remove the process instance associated to name.
- """
class IProcessInstanceContainerAdaptable(Interface):