Back to index

plone3  3.1.7
interfaces.py
Go to the documentation of this file.
00001 from zope.interface import Interface
00002 
00003 
00004 class ILinkIntegrityNotificationException(Interface):
00005     """ an exception indicating a prevented link integrity breach """
00006 
00007 
00008 class ILinkIntegrityTool(Interface):
00009     """ interface of link integrity tool """
00010 
00011 
00012 class ILinkIntegrityInfo(Interface):
00013     """ a place to store information about link integrity, i.e. breaches;
00014         the storage is assumed to be unique per browser request """
00015 
00016     def getIntegrityBreaches():
00017         """ return stored information regarding link integrity breaches """
00018 
00019     def setIntegrityBreaches(breaches):
00020         """ store information regarding link integrity breaches """
00021 
00022     def getDeletedItems():
00023         """ return information about all items deleted during the request """
00024 
00025     def addDeletedItem(item):
00026         """ remember an item deleted during the request """
00027 
00028     def getEnvMarker():
00029         """ return the marker string used to pass the already confirmed
00030             items across the retry exception """
00031 
00032     def isConfirmedItem(obj):
00033         """ indicate if the removal of the given object was confirmed """
00034 
00035     def encodeConfirmedItems(additions):
00036         """ return the list of previously confirmed (for removeal) items,
00037             optionally adding the given items, encoded for usage in a form """
00038 
00039 
00040 class IOFSImage(Interface):
00041     """ interface for OFS.Image.Image """
00042