Changeset 3152 in products for quintagroup.plonegooglesitemaps/trunk/quintagroup/plonegooglesitemaps/Extensions
- Timestamp:
- Apr 20, 2011 8:20:36 AM (13 years ago)
- Location:
- quintagroup.plonegooglesitemaps/trunk/quintagroup/plonegooglesitemaps/Extensions
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
quintagroup.plonegooglesitemaps/trunk/quintagroup/plonegooglesitemaps/Extensions/Install.py
r2408 r3152 6 6 PROFILE = "profile-quintagroup.plonegooglesitemaps:default" 7 7 UNINSTALL = "profile-quintagroup.plonegooglesitemaps:uninstall" 8 8 9 9 10 def install(self, reinstall=False): … … 19 20 step = None 20 21 profile_id = 'quintagroup.plonegooglesitemaps:default' 21 steps_to_run = [s['id'] for s in ps.listUpgrades(profile_id, show_old=False)] 22 steps_to_run = [s['id'] for s in \ 23 ps.listUpgrades(profile_id, show_old=False)] 22 24 for step_id in steps_to_run: 23 25 step = _upgrade_registry.getUpgradeStep(profile_id, step_id) 24 26 step.doStep(ps) 25 msg = "Ran upgrade step %s for profile %s" % (step.title, profile_id) 27 msg = "Ran upgrade step %s for profile %s" \ 28 % (step.title, profile_id) 26 29 logger.log(logging.INFO, msg) 27 30 # We update the profile version to the last one we have reached 28 31 # with running an upgrade step. 29 32 if step and step.dest is not None and step.checker is None: 30 ps.setLastVersionForProfile(profile_id, step.dest)33 ps.setLastVersionForProfile(profile_id, step.dest) 31 34 return "Ran all reinstall steps." 32 35 … … 44 47 """ Uninstall this product. 45 48 46 This external method is need, because portal_quickinstaller doens't know47 what GenericProfile profile to apply when uninstalling a product.49 This external method is need, because portal_quickinstaller doens't 50 know what GenericProfile profile to apply when uninstalling a product. 48 51 """ 49 52 setup_tool = getToolByName(portal, 'portal_setup') -
quintagroup.plonegooglesitemaps/trunk/quintagroup/plonegooglesitemaps/Extensions/ping_googlesitemap.py
r1593 r3152 1 1 from zope.event import notify 2 2 from quintagroup.plonegooglesitemaps.events import AfterTransitionEvent 3 3 4 4 5 def pingGoogleSitemap(stch): … … 7 8 stch.transition, stch.status, stch.kwargs)) 8 9 return 0 9
Note: See TracChangeset
for help on using the changeset viewer.