|
Last change
on this file since 1222 was
968,
checked in by koval, 18 years ago
|
|
updated PASMemberdataHandler.py for compatibility with product's tests
|
|
File size:
595 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 | setup_tool.runAllImportStepsFromProfile('profile-quintagroup.plonecomments:default') |
|---|
| 8 | print >> out, "Imported install profile." |
|---|
| 9 | return out.getvalue() |
|---|
| 10 | |
|---|
| 11 | def uninstall(self): |
|---|
| 12 | out = StringIO() |
|---|
| 13 | setup_tool = getToolByName(self, 'portal_setup') |
|---|
| 14 | setup_tool.runAllImportStepsFromProfile('profile-quintagroup.plonecomments:uninstall') |
|---|
| 15 | print >> out, "Imported uninstall profile." |
|---|
| 16 | return out.getvalue() |
|---|
Note: See
TracBrowser
for help on using the repository browser.