Back to index

plone3  3.1.7
Properties | Private Member Functions | Static Private Attributes
GenericSetup.OFSP.exportimport.FolderXMLAdapter Class Reference
Inheritance diagram for GenericSetup.OFSP.exportimport.FolderXMLAdapter:
Inheritance graph
[legend]
Collaboration diagram for GenericSetup.OFSP.exportimport.FolderXMLAdapter:
Collaboration graph
[legend]

List of all members.

Properties

 body = property(_exportBody, XMLAdapterBase._importBody)

Private Member Functions

def _exportNode
def _importNode
def _exportBody

Static Private Attributes

string _LOGGER_ID = 'ofs'

Detailed Description

XML im- and exporter for Folder.

Definition at line 29 of file exportimport.py.


Member Function Documentation

Export the object as a file body.

Definition at line 60 of file exportimport.py.

00060 
00061     def _exportBody(self):
00062         """Export the object as a file body.
00063         """
00064         if not self.context.meta_type in ('Folder', 'Folder (Ordered)'):
00065             return None
00066 
00067         return XMLAdapterBase._exportBody(self)

Export the object as a DOM node.

Definition at line 38 of file exportimport.py.

00038 
00039     def _exportNode(self):
00040         """Export the object as a DOM node.
00041         """
00042         node = self._getObjectNode('object')
00043         node.appendChild(self._extractProperties())
00044         node.appendChild(self._extractObjects())
00045 
00046         self._logger.info('Folder exported.')
00047         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 48 of file exportimport.py.

00048 
00049     def _importNode(self, node):
00050         """Import the object from the DOM node.
00051         """
00052         if self.environ.shouldPurge():
00053             self._purgeProperties()
00054             self._purgeObjects()
00055 
00056         self._initProperties(node)
00057         self._initObjects(node)
00058 
00059         self._logger.info('Folder imported.')

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 36 of file exportimport.py.


Property Documentation

GenericSetup.OFSP.exportimport.FolderXMLAdapter.body = property(_exportBody, XMLAdapterBase._importBody) [static]

Definition at line 68 of file exportimport.py.


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