source: products/quintagroup.plonegooglesitemaps/tags/1.4.4/quintagroup/plonegooglesitemaps/events.py

Last change on this file was 1593, checked in by mylan, 14 years ago

Add content from qPloneGoogleSitemaps. Fix all imports

  • Property svn:eol-style set to native
File size: 848 bytes
Line 
1try:
2    from Products.DCWorkflow.events import AfterTransitionEvent
3except ImportError:
4    # Copy AfterTransitionEvent from Plone-3/Products.DCWorkflow.events
5    from zope.interface import implements
6    from zope.app.event.objectevent import ObjectEvent
7    from quintagroup.plonegooglesitemaps.interfaces import *
8
9    class TransitionEvent(ObjectEvent):
10        implements(ITransitionEvent)
11
12        def __init__(self, obj, workflow, old_state, new_state, transition, status, kwargs):
13            ObjectEvent.__init__(self, obj)
14            self.workflow = workflow
15            self.old_state = old_state
16            self.new_state = new_state
17            self.transition = transition
18            self.status = status
19            self.kwargs = kwargs
20
21    class AfterTransitionEvent(TransitionEvent):
22        implements(IAfterTransitionEvent)
Note: See TracBrowser for help on using the repository browser.