Back to index

plone3  3.1.7
_marshall.py
Go to the documentation of this file.
00001 from Products.Archetypes.interfaces._layer import ILayer
00002 
00003 class IMarshall(ILayer):
00004     """De/Marshall data.
00005     """
00006 
00007     def demarshall(instance, data, **kwargs):
00008         """Given the blob 'data' demarshall it and modify 'instance'
00009         accordingly if possible
00010         """
00011 
00012     def marshall(instance, **kwargs):
00013         """Returns a tuple of content-type, length, and data
00014         """