[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/Workflow - IWorkflowEvents.py:1.1.2.2 WorkflowEvents.py:1.1.2.2
Florent Guillaume
fg@nuxeo.com
Tue, 5 Mar 2002 05:10:06 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/App/Workflow
In directory cvs.zope.org:/tmp/cvs-serv5138
Modified Files:
Tag: Zope-3x-branch
IWorkflowEvents.py WorkflowEvents.py
Log Message:
First (empty) cut of Workflow Action Completed Event.
=== Zope3/lib/python/Zope/App/Workflow/IWorkflowEvents.py 1.1.2.1 => 1.1.2.2 ===
Return the created object.
"""
+
+class IWorkflowActionCompletedEvent(IWorkflowEvent):
+ """
+ Note the completion of a WorkItem or a transition.
+ """
+ def getAction():
+ """
+ Return the action that was just completed.
+ """
=== Zope3/lib/python/Zope/App/Workflow/WorkflowEvents.py 1.1.2.1 => 1.1.2.2 ===
+from IWorkflowEvents import IWorkflowActionCompletedEvent
class WorkflowActionCreatedEvent:
@@ -11,5 +12,19 @@
def getAction(self):
'''See interface IWorkflowActionCreatedEvent'''
+ #
+ ############################################################
+
+
+class WorkflowActionCompletedEvent:
+
+ __implements__ = IWorkflowActionCompletedEvent
+
+ ############################################################
+ # Implementation methods for interface
+ # Zope.App.Workflow.IWorkflowEvents.IWorkflowActionCompletedEvent
+
+ def getAction(self):
+ '''See interface IWorkflowActionCompletedEvent'''
#
############################################################