Exemple #1
0
 def index_recursiv(self, node):
     if ICatalogAware.providedBy(node):
         self.index_doc(node)
         if hasattr(self, '_index_count'):
             self._index_count += 1
     for child in node.values():
         self.index_recursiv(child)
Exemple #2
0
 def unindex_recursiv(self, node):
     if ICatalogAware.providedBy(node):
         self.unindex_doc(node)
     for child in node.values():
         self.unindex_recursiv(child)