Back to index

plone3  3.1.7
Private Member Functions | Static Private Attributes
CMFPlone.exportimport.propertiestool.PlonePropertiesToolXMLAdapter Class Reference
Inheritance diagram for CMFPlone.exportimport.propertiestool.PlonePropertiesToolXMLAdapter:
Inheritance graph
[legend]
Collaboration diagram for CMFPlone.exportimport.propertiestool.PlonePropertiesToolXMLAdapter:
Collaboration graph
[legend]

List of all members.

Private Member Functions

def _exportNode
def _importNode
def _initObjects

Static Private Attributes

 __used_for__ = IPlonePropertiesTool

Detailed Description

Node im- and exporter for Plone PropertiesTool.

Definition at line 81 of file propertiestool.py.


Member Function Documentation

Export the object as a DOM node.

Definition at line 88 of file propertiestool.py.

00088 
00089     def _exportNode(self):
00090         """Export the object as a DOM node.
00091         """
00092         #self._doc = doc
00093         node = self._getObjectNode('object')
00094         #node.setAttribute('xmlns:i18n', I18NURI)
00095         node.appendChild(self._extractObjects())
00096         return node

Here is the call graph for this function:

Here is the caller graph for this function:

Import the object from the DOM node.

Definition at line 97 of file propertiestool.py.

00097 
00098     def _importNode(self, node):
00099         """Import the object from the DOM node.
00100         """
00101         if self.environ.shouldPurge():
00102             self._purgeObjects()
00103 
00104         self._initObjects(node)

Here is the call graph for this function:

Here is the caller graph for this function:

Import subobjects

Definition at line 105 of file propertiestool.py.

00105 
00106     def _initObjects(self, node):
00107         """Import subobjects"""
00108         ## XXX: We could just use the _initObjects() from
00109         ## ObjectManagerHelpers except that it looks up the object
00110         ## constructor from Products.meta_type and
00111         ## SimpleItemWithProperties doesn't get registered there.
00112         for child in node.childNodes:
00113             if child.nodeName != 'object':
00114                 continue
00115             if child.hasAttribute('deprecated'):
00116                 continue
00117             parent = self.context
00118 
00119             obj_id = str(child.getAttribute('name'))
00120             if obj_id not in parent.objectIds():
                parent._setObject(obj_id, SimpleItemWithProperties(obj_id))

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 86 of file propertiestool.py.


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