source: products/qPloneGoogleSitemaps/branches/contenttype/events.py @ 447

Last change on this file since 447 was 414, checked in by chervol, 13 years ago

move the branch into trunk

  • Property svn:eol-style set to native
File size: 846 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 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.