source: products/qPloneGoogleSitemaps/trunk/events.py @ 458

Last change on this file since 458 was 458, checked in by fenix, 13 years ago

qPloneResolveUID import

  • Property svn:eol-style set to native
File size: 846 bytes
RevLine 
[414]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 Products.qPloneGoogleSitemaps.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.