[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/Workflow - IWorkflowEvents.py:1.1.2.4 WorkflowEvents.py:1.1.2.4 IWorkflowActionAssignedEvent.py:NONE IWorkflowActionBegunEvent.py:NONE WorkflowActionAssignedEvent.py:NONE WorkflowActionBegunEvent.py:NONE
Tres Seaver
tseaver@zope.com
Tue, 5 Mar 2002 06:02:41 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/App/Workflow
In directory cvs.zope.org:/tmp/cvs-serv27161
Modified Files:
Tag: Zope-3x-branch
IWorkflowEvents.py WorkflowEvents.py
Removed Files:
Tag: Zope-3x-branch
IWorkflowActionAssignedEvent.py IWorkflowActionBegunEvent.py
WorkflowActionAssignedEvent.py WorkflowActionBegunEvent.py
Log Message:
- Consolidate files.
=== Zope3/lib/python/Zope/App/Workflow/IWorkflowEvents.py 1.1.2.3 => 1.1.2.4 ===
Return the action that had an exception.
"""
+
+class IWorkflowActionSuspendedEvent( IWorkflowEvent ):
+ """
+ Note the suspension of a workflow-aware action.
+ """
+ def getAction():
+ """
+ """
+
+class IWorkflowActionAssignedEvent( IWorkflowEvent ):
+ """
+ Note the assignment of a workflow-aware action.
+ """
+ def getAction():
+ """
+ """
+
+
+class IWorkflowActionBegunEvent( IWorkflowEvent ):
+ """
+ Note the beginning of a workflow-aware action.
+ """
+ def getAction():
+ """
+ """
=== Zope3/lib/python/Zope/App/Workflow/WorkflowEvents.py 1.1.2.3 => 1.1.2.4 ===
from IWorkflowEvents import IWorkflowActionCompletedEvent
from IWorkflowEvents import IWorkflowActionExceptionEvent
-
+from IWorkflowEvents import IWorkflowActionSuspendedEvent
+from IWorkflowEvents import IWorkflowActionAssignedEvent
+from IWorkflowEvents import IWorkflowActionBegunEvent
class WorkflowActionCreatedEvent:
__implements__ = IWorkflowActionCreatedEvent
+ def __init__( self, action ):
+ self._action = action
+
############################################################
# Implementation methods for interface
# Zope.App.Workflow.IWorkflowEvents.IWorkflowActionCreatedEvent
def getAction(self):
'''See interface IWorkflowActionCreatedEvent'''
+ return self._action
#
############################################################
@@ -42,5 +48,49 @@
def getAction(self):
'''See interface IWorkflowActionExceptionEvent'''
+ #
+ ############################################################
+
+
+class WorkflowActionSuspendedEvent:
+
+ __implements__ = IWorkflowActionSuspendedEvent
+
+ ############################################################
+ # Implementation methods for interface
+ # Zope.App.Workflow.IWorkflowEvents.IWorkflowActionSuspendedEvent
+
+ def getAction(self):
+ '''See interface IWorkflowActionSuspendedEvent'''
+ #
+ ############################################################
+
+
+class WorkflowActionAssignedEvent:
+
+
+ __implements__ = IWorkflowActionAssignedEvent
+
+ ############################################################
+ # Implementation methods for interface
+ # Zope.App.Workflow.IWorkflowActionAssignedEvent
+
+ def getAction(self):
+ '''See interface IWorkflowActionAssignedEvent'''
+ #
+ ############################################################
+
+
+class WorkflowActionBegunEvent:
+
+
+ __implements__ = IWorkflowActionBegunEvent
+
+ ############################################################
+ # Implementation methods for interface
+ # Zope.App.Workflow.IWorkflowActionBegunEvent
+
+ def getAction(self):
+ '''See interface IWorkflowActionBegunEvent'''
#
############################################################
=== Removed File Zope3/lib/python/Zope/App/Workflow/IWorkflowActionAssignedEvent.py ===
=== Removed File Zope3/lib/python/Zope/App/Workflow/IWorkflowActionBegunEvent.py ===
=== Removed File Zope3/lib/python/Zope/App/Workflow/WorkflowActionAssignedEvent.py ===
=== Removed File Zope3/lib/python/Zope/App/Workflow/WorkflowActionBegunEvent.py ===