Changeset 2528 in products


Ignore:
Timestamp:
Jun 14, 2010 1:14:34 PM (14 years ago)
Author:
mylan
Message:

#206: Improve code coverage - remove useless BBB code from interfaces.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.plonegooglesitemaps/branches/test_refactoring/quintagroup/plonegooglesitemaps/interfaces.py

    r1593 r2528  
    44from zope.app.container.constraints import contains 
    55from zope.app.container.constraints import containers 
     6 
     7from Products.DCWorkflow.interfaces import IAfterTransitionEvent 
    68 
    79from quintagroup.plonegooglesitemaps import qPloneGoogleSitemapsMessageFactory as _ 
     
    1113class ISitemap(Interface): 
    1214    """Search engine Sitemap content type""" 
    13  
    14 try: 
    15     from Products.DCWorkflow.interfaces import IAfterTransitionEvent 
    16 except 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 TracChangeset for help on using the changeset viewer.