source: products/qPloneGoogleSitemaps/trunk/interfaces.py @ 3309

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

qPloneResolveUID import

  • Property svn:eol-style set to native
File size: 1.5 KB
Line 
1from zope import schema
2from zope.interface import Interface
3
4from zope.app.container.constraints import contains
5from zope.app.container.constraints import containers
6
7from Products.qPloneGoogleSitemaps import qPloneGoogleSitemapsMessageFactory as _
8
9# -*- extra stuff goes here -*-
10
11class ISitemap(Interface):
12    """Search engine Sitemap content type"""
13
14try:
15    from Products.DCWorkflow.interfaces import IAfterTransitionEvent
16except ImportError:
17    # Copy IAfterTransitionEvent from Plone-3/Products.DCWorkflow.interfaces
18    from zope.interface import Interface, Attribute
19    from zope.app.event.interfaces import IObjectEvent
20
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 TracBrowser for help on using the repository browser.