Back to index

plone3  3.1.7
Private Member Functions | Private Attributes | Static Private Attributes
CMFCore.exportimport.properties.PropertiesXMLAdapter Class Reference
Inheritance diagram for CMFCore.exportimport.properties.PropertiesXMLAdapter:
Inheritance graph
[legend]
Collaboration diagram for CMFCore.exportimport.properties.PropertiesXMLAdapter:
Collaboration graph
[legend]

List of all members.

Private Member Functions

def _exportNode
def _importNode

Private Attributes

 _encoding

Static Private Attributes

string _LOGGER_ID = 'properties'

Detailed Description

XML im- and exporter for properties.

Definition at line 31 of file properties.py.


Member Function Documentation

Export the object as a DOM node.

Definition at line 40 of file properties.py.

00040 
00041     def _exportNode(self):
00042         """Export the object as a DOM node.
00043         """
00044         self._encoding = self.context.getProperty('default_charset', 'utf-8')
00045 
00046         node = self._doc.createElement('site')
00047         node.appendChild(self._extractProperties())
00048 
00049         self._logger.info('Site properties exported.')
00050         return node

Here is the caller graph for this function:

Import the object from the DOM node.

Definition at line 51 of file properties.py.

00051 
00052     def _importNode(self, node):
00053         """Import the object from the DOM node.
00054         """
00055         for child in node.childNodes:
00056             if child.nodeName != 'property':
00057                 continue
00058             if child.getAttribute('name') != 'default_charset':
00059                 continue
00060             self._encoding = self._getNodeText(child) or 'utf-8'
00061             break
00062 
00063         if self.environ.shouldPurge():
00064             self._purgeProperties()
00065 
00066         self._initProperties(node)
00067 
00068         self._logger.info('Site properties imported.')
00069 

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 43 of file properties.py.

string CMFCore.exportimport.properties.PropertiesXMLAdapter._LOGGER_ID = 'properties' [static, private]

Definition at line 38 of file properties.py.


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