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