Changeset 2538 in products for quintagroup.plonegooglesitemaps/trunk/quintagroup/plonegooglesitemaps/interfaces.py
- Timestamp:
- Jun 16, 2010 2:28:02 PM (14 years ago)
- Location:
- quintagroup.plonegooglesitemaps/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
quintagroup.plonegooglesitemaps/trunk
- Property svnmerge-integrated changed from /quintagroup.plonegooglesitemaps/branches/test_refactoring:1-3563 to /quintagroup.plonegooglesitemaps/branches/test_refactoring:1-3576
- Property svn:mergeinfo set to /quintagroup.plonegooglesitemaps/branches/test_refactoring:2527-2536
-
quintagroup.plonegooglesitemaps/trunk/quintagroup/plonegooglesitemaps/interfaces.py
r1593 r2538 4 4 from zope.app.container.constraints import contains 5 5 from zope.app.container.constraints import containers 6 7 from Products.DCWorkflow.interfaces import IAfterTransitionEvent 6 8 7 9 from quintagroup.plonegooglesitemaps import qPloneGoogleSitemapsMessageFactory as _ … … 11 13 class ISitemap(Interface): 12 14 """Search engine Sitemap content type""" 13 14 try:15 from Products.DCWorkflow.interfaces import IAfterTransitionEvent16 except ImportError:17 # Copy IAfterTransitionEvent from Plone-3/Products.DCWorkflow.interfaces18 from zope.interface import Interface, Attribute19 from zope.app.event.interfaces import IObjectEvent20 21 class ITransitionEvent(IObjectEvent):22 """An event that's fired upon a workflow transition.23 """24 25 workflow = Attribute(u"The workflow definition triggering the transition")26 old_state = Attribute(u"The state definition of the workflow state before the transition")27 new_state = Attribute(u"The state definition of the workflow state before after transition")28 transition = Attribute(u"The transition definition taking place. "29 "May be None if this is the 'transition' to the initial state.")30 status = Attribute(u"The status dict of the object.")31 kwargs = Attribute(u"Any keyword arguments passed to doActionFor() when the transition was invoked")32 33 class IAfterTransitionEvent(ITransitionEvent):34 35 """An event that's fired after a workflow transition.36 """
Note: See TracChangeset
for help on using the changeset viewer.