Changeset 2408 in products for quintagroup.plonegooglesitemaps/trunk/quintagroup/plonegooglesitemaps/Extensions/Install.py
- Timestamp:
- May 31, 2010 1:34:47 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
quintagroup.plonegooglesitemaps/trunk/quintagroup/plonegooglesitemaps/Extensions/Install.py
r2384 r2408 5 5 logger = logging.getLogger("quintagroup.plonegooglesitemaps") 6 6 PROFILE = "profile-quintagroup.plonegooglesitemaps:default" 7 UNINSTALL = "profile-quintagroup.plonegooglesitemaps:uninstall" 7 8 8 9 def install(self, reinstall=False): … … 38 39 ps.runAllImportSteps() 39 40 ps.setImportContext(active_context_id) 41 42 43 def uninstall(portal, reinstall=False): 44 """ Uninstall this product. 45 46 This external method is need, because portal_quickinstaller doens't know 47 what GenericProfile profile to apply when uninstalling a product. 48 """ 49 setup_tool = getToolByName(portal, 'portal_setup') 50 if reinstall: 51 return "Ran all reinstall steps." 52 else: 53 setup_tool.runAllImportStepsFromProfile(UNINSTALL) 54 return "Ran all uninstall steps."
Note: See TracChangeset
for help on using the changeset viewer.