def unindex(self, with_versions=True): if with_versions: task = CatalogingTask.get() for version in self.get_indexable_versions(): task.unindex(version) super(VersionedContentCataloging, self).unindex()
def reindex(self, indexes=None, with_versions=True): super(VersionedContentCataloging, self).reindex(indexes=indexes) if with_versions: task = CatalogingTask.get() for version in self.get_indexable_versions(): task.reindex(version, indexes)