Changeset 3402 in products for quintagroup.plonetabs/branches/tests/quintagroup/plonetabs/Extensions/Install.py
- Timestamp:
- Apr 2, 2012 1:04:35 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
quintagroup.plonetabs/branches/tests/quintagroup/plonetabs/Extensions/Install.py
r865 r3402 14 14 ) 15 15 16 16 17 def install(self, reinstall=False): 17 18 """Install a set of products (which themselves may either use Install.py 18 19 or GenericSetup extension profiles for their configuration) and then 19 20 install a set of extension profiles. 20 21 21 22 One of the extension profiles we install is that of this product. This 22 23 works because an Install.py installation script (such as this one) takes 23 precedence over extension profiles for the same product in 24 portal_quickinstaller. 25 24 precedence over extension profiles for the same product in 25 portal_quickinstaller. 26 26 27 We do this because it is not possible to install other products during 27 28 the execution of an extension profile (i.e. we cannot do this during 28 29 the importVarious step for this profile). 29 30 """ 30 31 31 32 portal_quickinstaller = getToolByName(self, 'portal_quickinstaller') 32 33 portal_setup = getToolByName(self, 'portal_setup') … … 39 40 portal_quickinstaller.installProduct(product) 40 41 transaction.savepoint() 41 42 42 43 for extension_id in EXTENSION_PROFILES: 43 portal_setup.runAllImportStepsFromProfile('profile-%s' % extension_id, purge_old=False) 44 portal_setup.runAllImportStepsFromProfile('profile-%s' % extension_id, 45 purge_old=False) 44 46 product_name = extension_id.split(':')[0] 45 47 portal_quickinstaller.notifyInstalled(product_name) 46 48 transaction.savepoint() 47 49 50 48 51 def uninstall(self): 49 52 portal_setup = getToolByName(self, 'portal_setup') 50 53 for extension_id in UNINSTALL_PROFILES: 51 portal_setup.runAllImportStepsFromProfile('profile-%s' % extension_id, purge_old=False) 54 portal_setup.runAllImportStepsFromProfile('profile-%s' % extension_id, 55 purge_old=False) 52 56 product_name = extension_id.split(':')[0] 53 57 transaction.savepoint()
Note: See TracChangeset
for help on using the changeset viewer.