source: products/quintagroup.themetemplate/trunk/quintagroup/themetemplate/templates/qplone3_theme/+namespace_package+/+namespace_package2+/+package+/Extensions/Install.py_tmpl @ 1005

Last change on this file since 1005 was 1005, checked in by mylan, 15 years ago

Import package: Copied http://svn.quintagroup.com/products/qtheme.template/trunk@2041 + modifications concerning changed package name, namespace

File size: 575 bytes
Line 
1import transaction
2from Products.CMFCore.utils import getToolByName
3
4UNINSTALL_PROFILES = [
5    '${namespace_package}.${namespace_package2}.${package}:uninstall'
6]
7
8def uninstall(self):
9    """This method is here to make uninstall GS profiles execution
10    on portal_quickinstaller's tool Uninstall action.
11    """
12    portal_setup = getToolByName(self, 'portal_setup')
13    for extension_id in UNINSTALL_PROFILES:
14        portal_setup.runAllImportStepsFromProfile('profile-%s' % extension_id)
15        product_name = extension_id.split(':')[0]
16        transaction.savepoint()
Note: See TracBrowser for help on using the repository browser.