Last change
on this file since 1545 was
1545,
checked in by liebster, 14 years ago
|
Added condition install or reinstall package
|
-
Property svn:eol-style set to
native
|
File size:
466 bytes
|
Line | |
---|
1 | from Products.CMFCore.utils import getToolByName |
---|
2 | from quintagroup.seoptimizer.config import PROJECT_NAME |
---|
3 | |
---|
4 | |
---|
5 | def uninstall(portal, reinstall=False): |
---|
6 | setup_tool = getToolByName(portal, 'portal_setup') |
---|
7 | setup_tool.setBaselineContext('profile-%s:uninstall'%PROJECT_NAME) |
---|
8 | if reinstall: |
---|
9 | return "Ran reinstall steps." |
---|
10 | else: |
---|
11 | setup_tool.runAllImportStepsFromProfile('profile-%s:uninstall'%PROJECT_NAME) |
---|
12 | return "Ran all uninstall steps." |
---|
Note: See
TracBrowser
for help on using the repository browser.