def uninstall(self): """QuickInstaller uninstall handler for Quills. Unfortunately, the QuickInstaller will not execute extension profiles for uninstalling. That's why we have to do it on our own. All other uninstalling is done by profile, either declarative or as code in module ``setuphandlers``. """ out = StringIO() setup_gs_profiles(self, (config.MY_GS_PROFILE + ":uninstall",), out) print >> out, u"Successfully uninstalled %s." % config.PROJECTNAME return out.getvalue()
def uninstall(self): """QuickInstaller uninstall handler for Quills. Unfortunately, the QuickInstaller will not execute extension profiles for uninstalling. That's why we have to do it on our own. All other uninstalling is done by profile, either declarative or as code in module ``setuphandlers``. """ out = StringIO() setup_gs_profiles(self, (config.MY_GS_PROFILE + ":uninstall", ), out) print("Successfully uninstalled %s." % config.PROJECTNAME, file=out) return out.getvalue()
def importFinalSteps(context): """Install Quills.""" # Only run step if a flag file is present # see http://maurits.vanrees.org/weblog/archive/2007/06/discovering-genericsetup if context.readDataFile('quillsenabled_product_various.txt') is None: return out = StringIO() # install dependencies portal = context.getSite() quickinstaller = portal.portal_quickinstaller for dependency in config.DEPENDENCIES: print >> out, u"Installing dependency %s:" % dependency quickinstaller.installProduct(dependency) commit() setup_gs_profiles(portal, config.GS_DEPENDENCIES, out) print >> out, u"Successfully installed %s." % config.PROJECTNAME return out.getvalue()