Back to index

plone3  3.1.7
Properties | Private Member Functions
GenericSetup.PluginIndexes.exportimport.PluggableIndexNodeAdapter Class Reference
Inheritance diagram for GenericSetup.PluginIndexes.exportimport.PluggableIndexNodeAdapter:
Inheritance graph
[legend]
Collaboration diagram for GenericSetup.PluginIndexes.exportimport.PluggableIndexNodeAdapter:
Collaboration graph
[legend]

List of all members.

Properties

 node = property(_exportNode, _importNode)

Private Member Functions

def _exportNode
def _importNode

Detailed Description

Node im- and exporter for FieldIndex, KeywordIndex.

Definition at line 36 of file exportimport.py.


Member Function Documentation

Export the object as a DOM node.

Definition at line 43 of file exportimport.py.

00043 
00044     def _exportNode(self):
00045         """Export the object as a DOM node.
00046         """
00047         node = self._getObjectNode('index')
00048         for value in self.context.getIndexSourceNames():
00049             child = self._doc.createElement('indexed_attr')
00050             child.setAttribute('value', value)
00051             node.appendChild(child)
00052         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 53 of file exportimport.py.

00053 
00054     def _importNode(self, node):
00055         """Import the object from the DOM node.
00056         """
00057         indexed_attrs = []
00058         for child in node.childNodes:
00059             if child.nodeName == 'indexed_attr':
00060                 indexed_attrs.append(
00061                                   child.getAttribute('value').encode('utf-8'))
00062         self.context.indexed_attrs = indexed_attrs
00063         self.context.clear()

Here is the call graph for this function:

Here is the caller graph for this function:


Property Documentation

Definition at line 64 of file exportimport.py.


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