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

Last change on this file since 968 was 968, checked in by koval, 15 years ago

updated PASMemberdataHandler.py for compatibility with product's tests

File size: 595 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')
7    setup_tool.runAllImportStepsFromProfile('profile-quintagroup.plonecomments:default')
8    print >> out, "Imported install profile."
9    return out.getvalue()
10
[822]11def 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.