def custom_hook_after_plone_upgrade(self): ps = getToolByName(self.context, 'portal_setup') ps.runImportStepFromProfile('profile-Testesi.skin:default', "skins", run_dependencies=False) upgrades.quickinstall_addons(self.context, uninstall=['aws.pdfbook']) self.migrate_description()
def postupgrade(self): """Mark products as correctly installed by the quickinstaller""" upgrades.log('postupgrade') context = self.context upgrades.quickinstall_addons(self.context, self.products, [], upgrades=self.upproducts) upgrades.commit(context)
def remove_products(self): context = self.context qi = getToolByName(context, 'portal_quickinstaller') if qi.isProductInstalled('kupu'): upgrades.quickinstall_addons( context, uninstall = ['kupu',],) if 'kupu_library_tool' in context.objectIds(): self.delete_path(self.path + "/kupu_library_tool") self.remove_cachefu()
def remove_products(self): context = self.context qi = getToolByName(context, 'portal_quickinstaller') if qi.isProductInstalled('kupu'): upgrades.quickinstall_addons( context, uninstall=[ 'kupu', ], ) if 'kupu_library_tool' in context.objectIds(): self.delete_path(self.path + "/kupu_library_tool") self.remove_cachefu()
def custom_hook_after_plone_upgrade(self): ps = getToolByName(self.context, 'portal_setup') ps.runImportStepFromProfile( 'profile-Testesi.skin:default', "skins", run_dependencies=False) upgrades.quickinstall_addons(self.context, uninstall=['aws.pdfbook']) self.migrate_description()