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

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

Pyflakes and pep8 fixes #7

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