Back to index

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

List of all members.

Public Member Functions

def getAttributeNames
def get
def deserialize
def serialize

Detailed Description

Definition at line 48 of file cmfns.py.


Member Function Documentation

def Marshall.namespaces.cmfns.TypeAttribute.deserialize (   self,
  instance,
  ns_data 
)

Definition at line 56 of file cmfns.py.

00056 
00057     def deserialize(self, instance, ns_data):
00058         value = ns_data.get(self.name)
00059         instance._setPortalTypeName( value )

Here is the call graph for this function:

def Marshall.namespaces.cmfns.TypeAttribute.get (   self,
  instance 
)

Definition at line 53 of file cmfns.py.

00053 
00054     def get(self, instance):
00055         return instance.getPortalTypeName()

Here is the caller graph for this function:

Definition at line 50 of file cmfns.py.

00050 
00051     def getAttributeNames(self):
00052         return (self.name,)

Here is the call graph for this function:

def Marshall.namespaces.cmfns.TypeAttribute.serialize (   self,
  dom,
  parent_node,
  instance 
)

Definition at line 60 of file cmfns.py.

00060 
00061     def serialize(self, dom, parent_node, instance):
00062         value = self.get(instance)
00063         elname = "%s:%s"%(self.namespace.prefix, self.name)
00064         node = dom.createElementNS( CMF.xmlns, elname )
00065         value_node = dom.createTextNode( str( 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: