Back to index

plone3  3.1.7
Public Member Functions | Public Attributes | Static Public Attributes | Static Private Attributes
Archetypes.Marshall.Marshaller Class Reference
Inheritance diagram for Archetypes.Marshall.Marshaller:
Inheritance graph
[legend]

List of all members.

Public Member Functions

def __init__
def initializeInstance
def cleanupInstance
def demarshall
def marshall
def initializeField
def cleanupField

Public Attributes

 demarshall_hook
 marshall_hook

Static Public Attributes

tuple security = ClassSecurityInfo()

Static Private Attributes

 __implements__ = IMarshall,ILayer

Detailed Description

Definition at line 103 of file Marshall.py.


Constructor & Destructor Documentation

def Archetypes.Marshall.Marshaller.__init__ (   self,
  demarshall_hook = None,
  marshall_hook = None 
)

Definition at line 110 of file Marshall.py.

00110 
00111     def __init__(self, demarshall_hook=None, marshall_hook=None):
00112         self.demarshall_hook = demarshall_hook
00113         self.marshall_hook = marshall_hook

Here is the caller graph for this function:


Member Function Documentation

def Archetypes.Marshall.Marshaller.cleanupField (   self,
  instance,
  field 
)

Definition at line 139 of file Marshall.py.

00139 
00140     def cleanupField(self, instance, field):
00141         pass
00142 
00143 InitializeClass(Marshaller)

def Archetypes.Marshall.Marshaller.cleanupInstance (   self,
  instance,
  item = None,
  container = None 
)

Definition at line 124 of file Marshall.py.

00124 
00125     def cleanupInstance(self, instance, item=None, container=None):
00126         if hasattr(aq_base(instance), 'demarshall_hook'):
00127             delattr(instance, 'demarshall_hook')
00128         if hasattr(aq_base(instance), 'marshall_hook'):
00129             delattr(instance, 'marshall_hook')

def Archetypes.Marshall.Marshaller.demarshall (   self,
  instance,
  data,
  kwargs 
)

Reimplemented in Archetypes.Marshall.RFC822Marshaller, and Archetypes.Marshall.PrimaryFieldMarshaller.

Definition at line 130 of file Marshall.py.

00130 
00131     def demarshall(self, instance, data, **kwargs):
00132         raise NotImplemented

def Archetypes.Marshall.Marshaller.initializeField (   self,
  instance,
  field 
)

Definition at line 136 of file Marshall.py.

00136 
00137     def initializeField(self, instance, field):
00138         pass

def Archetypes.Marshall.Marshaller.initializeInstance (   self,
  instance,
  item = None,
  container = None 
)

Definition at line 114 of file Marshall.py.

00114 
00115     def initializeInstance(self, instance, item=None, container=None):
00116         dm_hook = None
00117         m_hook = None
00118         if self.demarshall_hook is not None:
00119             dm_hook = getattr(instance, self.demarshall_hook, None)
00120         if self.marshall_hook is not None:
00121             m_hook = getattr(instance, self.marshall_hook, None)
00122         instance.demarshall_hook = dm_hook
00123         instance.marshall_hook = m_hook

def Archetypes.Marshall.Marshaller.marshall (   self,
  instance,
  kwargs 
)

Reimplemented in Archetypes.Marshall.RFC822Marshaller, and Archetypes.Marshall.PrimaryFieldMarshaller.

Definition at line 133 of file Marshall.py.

00133 
00134     def marshall(self, instance, **kwargs):
00135         raise NotImplemented

Here is the caller graph for this function:


Member Data Documentation

Archetypes.Marshall.Marshaller.__implements__ = IMarshall,ILayer [static, private]

Definition at line 104 of file Marshall.py.

Definition at line 111 of file Marshall.py.

Definition at line 112 of file Marshall.py.

tuple Archetypes.Marshall.Marshaller.security = ClassSecurityInfo() [static]

The documentation for this class was generated from the following file: