source: products/quintagroup.gauth/trunk/quintagroup/gauth/Extensions/Install.py @ 2617

Last change on this file since 2617 was 2617, checked in by mylan, 14 years ago

Fix unistallation procedure

  • Property svn:eol-style set to native
File size: 604 bytes
Line 
1import logging
2from Products.CMFCore.utils import getToolByName
3
4logger = logging.getLogger('quintagroup.gauth')
5
6def uninstall(portal, reinstall=False):
7    """ Uninstall this product.
8
9        This external method is need, because portal_quickinstaller doens't know
10        what GenericProfile profile to apply when uninstalling a product.
11    """
12    setup_tool = getToolByName(portal, 'portal_setup')
13    if reinstall:
14        return "Ran all reinstall steps."
15    else:
16        setup_tool.runAllImportStepsFromProfile('profile-quintagroup.gauth:uninstall')
17        return "Ran all uninstall steps."
Note: See TracBrowser for help on using the repository browser.