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)
def unindex_recursiv(self, node): if ICatalogAware.providedBy(node): self.unindex_doc(node) for child in node.values(): self.unindex_recursiv(child)