Last change
on this file since 3120 was
3120,
checked in by kroman0, 13 years ago
|
Pyflakes and pep8 fixes #7
|
File size:
641 bytes
|
Rev | Line | |
---|
[822] | 1 | from Products.CMFCore.utils import getToolByName |
---|
| 2 | from StringIO import StringIO |
---|
| 3 | |
---|
[3120] | 4 | |
---|
[968] | 5 | def install(self): |
---|
| 6 | out = StringIO() |
---|
| 7 | setup_tool = getToolByName(self, 'portal_setup') |
---|
[3119] | 8 | profile = 'profile-quintagroup.plonecomments:default' |
---|
| 9 | setup_tool.runAllImportStepsFromProfile(profile) |
---|
[968] | 10 | print >> out, "Imported install profile." |
---|
| 11 | return out.getvalue() |
---|
| 12 | |
---|
[3120] | 13 | |
---|
[822] | 14 | def uninstall(self): |
---|
| 15 | out = StringIO() |
---|
| 16 | setup_tool = getToolByName(self, 'portal_setup') |
---|
[3119] | 17 | profile = 'profile-quintagroup.plonecomments:uninstall' |
---|
| 18 | setup_tool.runAllImportStepsFromProfile(profile) |
---|
[822] | 19 | print >> out, "Imported uninstall profile." |
---|
| 20 | return out.getvalue() |
---|
Note: See
TracBrowser
for help on using the repository browser.