Changeset 3160 in products for quintagroup.plonecaptchas/branches/plone4/quintagroup/plonecaptchas/Extensions/Install.py
- Timestamp:
- Apr 20, 2011 10:44:02 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
quintagroup.plonecaptchas/branches/plone4/quintagroup/plonecaptchas/Extensions/Install.py
r2041 r3160 2 2 from Products.CMFCore.utils import getToolByName 3 3 REQUIRED = 'quintagroup.captcha.core' 4 4 5 5 6 def install(self): … … 13 14 # install plonecaptchas 14 15 gs = getToolByName(self, 'portal_setup') 15 gs.runAllImportStepsFromProfile('profile-quintagroup.plonecaptchas:default') 16 profile = 'profile-quintagroup.plonecaptchas:default' 17 gs.runAllImportStepsFromProfile(profile) 16 18 transaction.savepoint() 19 17 20 18 21 def uninstall(self): 19 22 portal_setup = getToolByName(self, 'portal_setup') 20 portal_setup.runAllImportStepsFromProfile('profile-quintagroup.plonecaptchas:uninstall', purge_old=False) 23 profile = 'profile-quintagroup.plonecaptchas:uninstall' 24 portal_setup.runAllImportStepsFromProfile(profile, purge_old=False) 21 25 transaction.savepoint()
Note: See TracChangeset
for help on using the changeset viewer.