1
from zope.interface import Interface
3
class IContentStore(Interface):
5
Interface for storing and retrieving immutable content objects.
7
def storeObject(content, contentType, metadata={}):
11
@param content: the data to store.
13
@param contentType: the MIME type of the content.
14
@type contentType: C{unicode}
15
@param metadata: a dictionary of metadata entries.
16
@type metadata: C{dict} of C{unicode}:C{unicode}
17
@returns: the object identifier.
21
def getObject(objectID):
25
@param objectId: the object identifier.
26
@type objectId: C{unicode}