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

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

Pyflakes and pep8 fixes #6

File size: 639 bytes
Line 
1from Products.CMFCore.utils import getToolByName
2from StringIO import StringIO
3
4def 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
12def 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.