[Zope3-checkins] SVN: Zope3/branches/jack-e_interfacebased_workflow/src/zope/app/workflow/stateful/transition_events.py Event for user triggered transitions

Julien Anguenot ja at nuxeo.com
Tue Oct 12 06:26:46 EDT 2004


Log message for revision 27990:
  Event for user triggered transitions


Changed:
  A   Zope3/branches/jack-e_interfacebased_workflow/src/zope/app/workflow/stateful/transition_events.py


-=-
Added: Zope3/branches/jack-e_interfacebased_workflow/src/zope/app/workflow/stateful/transition_events.py
===================================================================
--- Zope3/branches/jack-e_interfacebased_workflow/src/zope/app/workflow/stateful/transition_events.py	2004-10-12 10:25:35 UTC (rev 27989)
+++ Zope3/branches/jack-e_interfacebased_workflow/src/zope/app/workflow/stateful/transition_events.py	2004-10-12 10:26:44 UTC (rev 27990)
@@ -0,0 +1,36 @@
+##############################################################################
+#
+# Copyright (c) 2004 Zope Corporation and Contributors.
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.1 (ZPL).  A copy of the ZPL should accompany this distribution.
+# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
+# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
+# FOR A PARTICULAR PURPOSE.
+#
+##############################################################################
+
+"""Transition Events
+
+$Id: $
+"""
+
+from zope.interface import implements
+from zope.app.event.objectevent import ObjectEvent
+
+from interfaces import ITransitionEventUserTriggered
+
+class TransitionUserTriggeredEvent(ObjectEvent):
+    """Transition User Triggered Event
+    """
+
+    implements(ITransitionEventUserTriggered)
+
+    def __init__(self, object, transition, kwargs={}):
+        """Constructor
+        """
+        super(TransitionUserTriggeredEvent, self).__init__(object)
+        self.form_action = transition
+        self.kwargs = kwargs



More information about the Zope3-Checkins mailing list