source: products/quintagroup.plonegooglesitemaps/trunk/quintagroup/plonegooglesitemaps/events.py @ 3152

Last change on this file since 3152 was 3152, checked in by zidane, 10 years ago

fixes pep8

  • Property svn:eol-style set to native
File size: 872 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, \
13                     status, kwargs):
14            ObjectEvent.__init__(self, obj)
15            self.workflow = workflow
16            self.old_state = old_state
17            self.new_state = new_state
18            self.transition = transition
19            self.status = status
20            self.kwargs = kwargs
21
22    class AfterTransitionEvent(TransitionEvent):
23        implements(IAfterTransitionEvent)
Note: See TracBrowser for help on using the repository browser.