Back to index

plone3  3.1.7
event.py
Go to the documentation of this file.
00001 """Event definitions
00002 """
00003 
00004 from zope.interface import implements
00005 
00006 from zope.component.interfaces import ObjectEvent
00007 from zope.lifecycleevent import ObjectModifiedEvent
00008 
00009 from Products.Archetypes.interfaces import IObjectInitializedEvent
00010 from Products.Archetypes.interfaces import IObjectEditedEvent
00011 from Products.Archetypes.interfaces import IEditBegunEvent
00012 from Products.Archetypes.interfaces import IEditCancelledEvent
00013 
00014 # Modification
00015 
00016 class ObjectInitializedEvent(ObjectModifiedEvent):
00017     """An object is being initialised, i.e. populated for the first time
00018     """
00019     implements(IObjectInitializedEvent)
00020 
00021 class ObjectEditedEvent(ObjectModifiedEvent):
00022     """An object is being edited, i.e. modified after the first save
00023     """
00024     implements(IObjectEditedEvent)
00025 
00026 class EditBegunEvent(ObjectEvent):
00027     """An edit operation was begun
00028     """
00029     implements(IEditBegunEvent)
00030     
00031 class EditCancelledEvent(ObjectEvent):
00032     """An edit operation was cancelled
00033     """
00034     implements(IEditCancelledEvent)