[Zope3-checkins] CVS: Zope3/src/zope/app/interfaces/workflow - __init__.py:1.12 stateful.py:1.11
Ulrich Eck
ueck@net-labs.de
Fri, 28 Mar 2003 13:17:03 -0500
Update of /cvs-repository/Zope3/src/zope/app/interfaces/workflow
In directory cvs.zope.org:/tmp/cvs-serv4580
Modified Files:
__init__.py stateful.py
Log Message:
added transition script support
minor interface cleanup
=== Zope3/src/zope/app/interfaces/workflow/__init__.py 1.11 => 1.12 ===
--- Zope3/src/zope/app/interfaces/workflow/__init__.py:1.11 Thu Mar 27 11:32:21 2003
+++ Zope3/src/zope/app/interfaces/workflow/__init__.py Fri Mar 28 13:17:02 2003
@@ -74,10 +74,6 @@
name = Attribute("""The name of the ProcessDefinition""")
- def clear():
- """Clear the whole ProcessDefinition.
- """
-
def createProcessInstance():
"""Create a new process instance for this process definition.
@@ -115,16 +111,10 @@
-
-
-
class IProcessInstanceContainerAdaptable(Interface):
"""Marker interface for components that can be
adapted to a process instance container.
"""
-
-
-
class IProcessInstanceControl(Interface):
=== Zope3/src/zope/app/interfaces/workflow/stateful.py 1.10 => 1.11 ===
--- Zope3/src/zope/app/interfaces/workflow/stateful.py:1.10 Wed Mar 26 12:14:32 2003
+++ Zope3/src/zope/app/interfaces/workflow/stateful.py Fri Mar 28 13:17:02 2003
@@ -76,7 +76,13 @@
condition = zope.schema.TextLine(
title=u"Condition",
description=u"""The condition that is evaluated to decide if the
- condition is fired or not.""",
+ transition can be fired or not.""",
+ required=False)
+
+ script = zope.schema.TextLine(
+ title=u"Script",
+ description=u"""The script that is evaluated to decide if the
+ transition can be fired or not.""",
required=False)
permission = PermissionField(
@@ -108,6 +114,12 @@
def setCondition(condition):
"""Set Condition."""
+ def getScript():
+ """Get Script."""
+
+ def setScript(script):
+ """Set Script."""
+
def getPermission():
"""Get Permission."""
@@ -199,6 +211,12 @@
def getTransitionNames():
"""Get the transition names.
"""
+
+ # XXX Temporarily till we find a better solution
+ def clear():
+ """Clear the whole ProcessDefinition.
+ """
+