Rev | Line | |
---|
[1005] | 1 | import transaction |
---|
| 2 | from Products.CMFCore.utils import getToolByName |
---|
| 3 | |
---|
| 4 | UNINSTALL_PROFILES = [ |
---|
| 5 | '${namespace_package}.${namespace_package2}.${package}:uninstall' |
---|
| 6 | ] |
---|
| 7 | |
---|
| 8 | def uninstall(self): |
---|
| 9 | """This method is here to make uninstall GS profiles execution |
---|
| 10 | on portal_quickinstaller's tool Uninstall action. |
---|
| 11 | """ |
---|
| 12 | portal_setup = getToolByName(self, 'portal_setup') |
---|
| 13 | for extension_id in UNINSTALL_PROFILES: |
---|
| 14 | portal_setup.runAllImportStepsFromProfile('profile-%s' % extension_id) |
---|
| 15 | product_name = extension_id.split(':')[0] |
---|
| 16 | transaction.savepoint() |
---|
Note: See
TracBrowser
for help on using the repository browser.