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