def uninstallVarious(context): """Remove all persistent configuration from the site manager""" if context.readDataFile('ratings-uninstall.txt') is None: return site = context.getSite() setSite(site) cat_manager = ICategoryContainer(site) for cat in cat_manager._get_local_categories(): cat_manager.remove(cat)
def _purgeTypeRatingsSettings(self): self.context._mapping.clear() category_container = ICategoryContainer(getSite()) for cat in category_container.local_categories: category_container.remove(cat)
def _purgeTypeRatingsSettings(self): self.context._mapping.clear() category_container=ICategoryContainer(getSite()) for cat in category_container.local_categories: category_container.remove(cat)