source: products/quintagroup.blog.star/trunk/quintagroup/blog/star/Extensions/Install.py @ 2639

Last change on this file since 2639 was 2639, checked in by chervol, 14 years ago

Added basic package install/uninstall profiles with browser layer marker interface

  • Property svn:eol-style set to native
File size: 612 bytes
Line 
1import logging
2from Products.CMFCore.utils import getToolByName
3
4logger = logging.getLogger('quintagroup.blog.star')
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.blog.star:uninstall')
17        return "Ran all uninstall steps."
Note: See TracBrowser for help on using the repository browser.