Back to index

plone3  3.1.7
interfaces.py
Go to the documentation of this file.
00001 from zope.interface import Interface, Attribute
00002 try:
00003     from zope.component.interfaces import IObjectEvent
00004 except ImportError:
00005     from zope.app.event.interfaces import IObjectEvent
00006     
00007 from zope.formlib.interfaces import IPageForm
00008 from zope.formlib.interfaces import ISubPageForm
00009 
00010 class IPlonePageForm(IPageForm):
00011     """A page form with a couple extra attributes
00012     """
00013     description = Attribute("A longer description to display on the form")
00014     form_name = Attribute("A label to apply to the fieldset")
00015 
00016 class IPloneSubPageForm(ISubPageForm):
00017     """A page form with a couple extra attributes
00018     """
00019     description = Attribute("A longer description to display on the form")
00020     form_name = Attribute("A label to apply to the fieldset")
00021 
00022 class IEditForm(Interface):
00023     """Marker interface for edit forms. This allows things like the locking
00024     widget to be registered for edit forms only.
00025     """
00026     
00027 class IEditBegunEvent(IObjectEvent):
00028     """An event signalling that editing has begun on an object
00029     """
00030     
00031 class IEditFinishedEvent(IObjectEvent):
00032     """Base event signalling that an edit operation has completed
00033     """
00034     
00035 class IEditCancelledEvent(IEditFinishedEvent):
00036     """An event signalling that editing was cancelled on the given object
00037     """
00038     
00039 class IEditSavedEvent(IEditFinishedEvent):
00040     """An event signalling that editing was complated on the given object
00041     """