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