Changeset 2408 in products
- Timestamp:
- May 31, 2010 1:34:47 PM (14 years ago)
- Location:
- quintagroup.plonegooglesitemaps/trunk/quintagroup/plonegooglesitemaps
- Files:
-
- 4 added
- 2 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." -
quintagroup.plonegooglesitemaps/trunk/quintagroup/plonegooglesitemaps/configure.zcml
r2402 r2408 33 33 34 34 <genericsetup:registerProfile 35 name="uninstall" 36 title="Uninstall Plone Google Sitemaps" 37 directory="profiles/uninstall" 38 description="" 39 provides="Products.GenericSetup.interfaces.EXTENSION" 40 /> 41 42 <genericsetup:registerProfile 35 43 name="upgrade_1_0_to_1_1" 36 title=" Plone Google Sitemaps"44 title="Upgrade Plone Google Sitemaps from 1.0 to 1.1" 37 45 directory="profiles/upgrade_1_0_to_1_1" 38 46 description="" … … 42 50 <genericsetup:registerProfile 43 51 name="upgrade_1_1_to_1_2" 44 title=" Plone Google Sitemaps"52 title="Upgrade Plone Google Sitemaps from 1.1 to 1.2" 45 53 directory="profiles/upgrade_1_1_to_1_2" 46 54 description=""
Note: See TracChangeset
for help on using the changeset viewer.