Back to index

plone3  3.1.7
interfaces.py
Go to the documentation of this file.
00001 from zope.interface import Interface, Attribute
00002 
00003 class IMessage(Interface):
00004     """A single status message."""
00005 
00006     message = Attribute('The text of this message. Usally a Message object.')
00007 
00008     type = Attribute('The type of this message.')
00009 
00010 
00011 class IStatusMessage(Interface):
00012     """An adapter for the BrowserRequest to handle status messages."""
00013 
00014     def addStatusMessage(text, type=''):
00015         """Add a status message."""
00016 
00017     def showStatusMessages():
00018         """Removes all status messages and returns them for display.
00019         """