[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/Workflow - IWorkflowEvents.py:1.1.2.1 WorkflowEvents.py:1.1.2.1

Tres Seaver tseaver@zope.com
Tue, 5 Mar 2002 04:30:22 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/App/Workflow
In directory cvs.zope.org:/tmp/cvs-serv26659

Added Files:
      Tag: Zope-3x-branch
	IWorkflowEvents.py WorkflowEvents.py 
Log Message:


  - Add initial cut at Workflow events.


=== Added File Zope3/lib/python/Zope/App/Workflow/IWorkflowEvents.py ===
"""
    Interfaces for workflow-related events.
"""

from Interface import Interface

class IWorkflowEvent( Interface ):
    """
        Base interface for events related to workflow.
    """


class IWorkflowActionCreatedEvent( IWorkflowEvent ):
    """
        Note the creation of a new workflow-aware component (a
        WorkItem, for WfMC-style activity-based workflows, or a
        new content object, for DCWorkflow-style document-based
        workflows.
    """
    def getAction():
        """
            Return the created object.
        """


=== Added File Zope3/lib/python/Zope/App/Workflow/WorkflowEvents.py ===
from IWorkflowEvents import IWorkflowActionCreatedEvent

class WorkflowActionCreatedEvent:


    __implements__ =  IWorkflowActionCreatedEvent

    ############################################################
    # Implementation methods for interface
    # Zope.App.Workflow.IWorkflowEvents.IWorkflowActionCreatedEvent

    def getAction(self):
        '''See interface IWorkflowActionCreatedEvent'''
    #
    ############################################################