Changeset 2137 in products for quintagroup.plonecomments/branches/jquery/quintagroup/plonecomments/Extensions/Install.py
- Timestamp:
- Apr 16, 2010 12:13:55 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
quintagroup.plonecomments/branches/jquery/quintagroup/plonecomments/Extensions/Install.py
r968 r2137 1 1 from Products.CMFCore.utils import getToolByName 2 2 from StringIO import StringIO 3 3 4 4 5 def install(self): 5 6 out = StringIO() 6 7 setup_tool = getToolByName(self, 'portal_setup') 7 setup_tool.runAllImportStepsFromProfile('profile-quintagroup.plonecomments:default') 8 setup_tool.runAllImportStepsFromProfile( 9 'profile-quintagroup.plonecomments:default') 8 10 print >> out, "Imported install profile." 9 11 return out.getvalue() 12 10 13 11 14 def uninstall(self): 12 15 out = StringIO() 13 16 setup_tool = getToolByName(self, 'portal_setup') 14 setup_tool.runAllImportStepsFromProfile('profile-quintagroup.plonecomments:uninstall') 17 setup_tool.runAllImportStepsFromProfile( 18 'profile-quintagroup.plonecomments:uninstall') 15 19 print >> out, "Imported uninstall profile." 16 20 return out.getvalue()
Note: See TracChangeset
for help on using the changeset viewer.