|
Last change
on this file since 3120 was
3120,
checked in by kroman0, 15 years ago
|
|
Pyflakes and pep8 fixes #7
|
|
File size:
641 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 | profile = 'profile-quintagroup.plonecomments:default' |
|---|
| 9 | setup_tool.runAllImportStepsFromProfile(profile) |
|---|
| 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 | profile = 'profile-quintagroup.plonecomments:uninstall' |
|---|
| 18 | setup_tool.runAllImportStepsFromProfile(profile) |
|---|
| 19 | print >> out, "Imported uninstall profile." |
|---|
| 20 | return out.getvalue() |
|---|
Note: See
TracBrowser
for help on using the repository browser.