Back to index

plone3  3.1.7
Properties | Private Member Functions
GenericSetup.PluginIndexes.exportimport.TopicIndexNodeAdapter Class Reference
Inheritance diagram for GenericSetup.PluginIndexes.exportimport.TopicIndexNodeAdapter:
Inheritance graph
Collaboration diagram for GenericSetup.PluginIndexes.exportimport.TopicIndexNodeAdapter:
Collaboration graph

List of all members.


 node = property(_exportNode, _importNode)

Private Member Functions

def _exportNode
def _importNode

Detailed Description

Node im- and exporter for TopicIndex.

Definition at line 191 of file

Member Function Documentation

Export the object as a DOM node.

Definition at line 198 of file

00199     def _exportNode(self):
00200         """Export the object as a DOM node.
00201         """
00202         node = self._getObjectNode('index')
00203         for set in self.context.filteredSets.values():
00204             exporter = queryMultiAdapter((set, self.environ), INode)
00205             node.appendChild(exporter.node)
00206         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 207 of file

00208     def _importNode(self, node):
00209         """Import the object from the DOM node.
00210         """
00211         for child in node.childNodes:
00212             if child.nodeName == 'filtered_set':
00213                 set_id = str(child.getAttribute('name'))
00214                 if set_id not in self.context.filteredSets:
00215                     set_meta_type = str(child.getAttribute('meta_type'))
00216                     self.context.addFilteredSet(set_id, set_meta_type, '')
00217                 set = self.context.filteredSets[set_id]
00218                 importer = queryMultiAdapter((set, self.environ), INode)
00219                 importer.node = child
00220         self.context.clear()

Here is the caller graph for this function:

Property Documentation

Definition at line 221 of file

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