source: products/quintagroup.plonetabs/branches/tests/quintagroup/plonetabs/setuphandlers.py @ 3389

Last change on this file since 3389 was 865, checked in by chervol, 17 years ago

fixed the typo

  • Property svn:eol-style set to native
File size: 577 bytes
Line 
1from Products.CMFCore.utils import getToolByName
2
3def cleanUpControlPanel(portal, out):
4    cpt = getToolByName(portal, 'portal_controlpanel')
5    if 'plonetabs' in [o.id for o in cpt.listActions()]:
6        cpt.unregisterConfiglet('plonetabs')
7        out.append('plonetabs configlet unregistered.')
8
9def uninstall(context):
10    # Only run step if a flag file is present (e.g. not an extension profile)
11    if context.readDataFile('quintagroup.plonetabs-uninstall.txt') is None:
12        return
13    out = []
14    site = context.getSite()
15   
16    cleanUpControlPanel(site, out)
Note: See TracBrowser for help on using the repository browser.