Back to index

plone3  3.1.7
Public Member Functions
Marshall.namespaces.adobens.XMPDate Class Reference
Inheritance diagram for Marshall.namespaces.adobens.XMPDate:
Inheritance graph
[legend]
Collaboration diagram for Marshall.namespaces.adobens.XMPDate:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def get
def deserialize
def serialize

Detailed Description

Definition at line 45 of file adobens.py.


Member Function Documentation

def Marshall.namespaces.adobens.XMPDate.deserialize (   self,
  instance,
  ns_data 
)

Definition at line 50 of file adobens.py.

00050 
00051     def deserialize(self, instance, ns_data):
00052         value = ns_data.get( self.name )
00053         if not value:
00054             return
00055         value = DateTime( value )
00056         setattr(instance, self.field_id, value )        

Here is the call graph for this function:

def Marshall.namespaces.adobens.XMPDate.get (   self,
  instance 
)

Definition at line 47 of file adobens.py.

00047 
00048     def get(self, instance):
00049         return getattr(instance, self.field_id)

Here is the caller graph for this function:

def Marshall.namespaces.adobens.XMPDate.serialize (   self,
  dom,
  parent_node,
  instance 
)

Definition at line 57 of file adobens.py.

00057 
00058     def serialize(self, dom, parent_node, instance):
00059         value = self.get( instance )
00060         if isinstance( value, DateTime):
00061             value = value.HTML4()
00062         elname = "%s:%s"%(self.namespace.prefix, self.name)
00063         node = dom.createElementNS( self.namespace.xmlns,
00064                                     elname )
00065         value_node = dom.createTextNode( value )
00066         node.appendChild( value_node )
00067         node.normalize()
00068         parent_node.appendChild( node )
00069     


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