Example #1
0
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)
Example #2
0
 def _purgeTypeRatingsSettings(self):
     self.context._mapping.clear()
     category_container = ICategoryContainer(getSite())
     for cat in category_container.local_categories:
         category_container.remove(cat)
Example #3
0
 def _purgeTypeRatingsSettings(self):
     self.context._mapping.clear()
     category_container=ICategoryContainer(getSite())
     for cat in category_container.local_categories:
         category_container.remove(cat)