source: products/quintagroup.plonecomments/trunk/quintagroup/plonecomments/Extensions/Install.py @ 3119

Last change on this file since 3119 was 3119, checked in by kroman0, 13 years ago

Pyflakes and pep8 fixes #6

File size: 639 bytes
RevLine 
[822]1from Products.CMFCore.utils import getToolByName
2from StringIO import StringIO
3
[968]4def install(self):
5    out = StringIO()
6    setup_tool = getToolByName(self, 'portal_setup')
[3119]7    profile = 'profile-quintagroup.plonecomments:default'
8    setup_tool.runAllImportStepsFromProfile(profile)
[968]9    print >> out, "Imported install profile."
10    return out.getvalue()
11
[822]12def uninstall(self):
13    out = StringIO()
14    setup_tool = getToolByName(self, 'portal_setup')
[3119]15    profile = 'profile-quintagroup.plonecomments:uninstall'
16    setup_tool.runAllImportStepsFromProfile(profile)
[822]17    print >> out, "Imported uninstall profile."
18    return out.getvalue()
Note: See TracBrowser for help on using the repository browser.