Ignore:
Timestamp:
Apr 20, 2011 8:20:36 AM (13 years ago)
Author:
zidane
Message:

fixes pep8

Location:
quintagroup.plonegooglesitemaps/trunk/quintagroup/plonegooglesitemaps/Extensions
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.plonegooglesitemaps/trunk/quintagroup/plonegooglesitemaps/Extensions/Install.py

    r2408 r3152  
    66PROFILE = "profile-quintagroup.plonegooglesitemaps:default" 
    77UNINSTALL = "profile-quintagroup.plonegooglesitemaps:uninstall" 
     8 
    89 
    910def install(self, reinstall=False): 
     
    1920        step = None 
    2021        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)] 
    2224        for step_id in steps_to_run: 
    2325            step = _upgrade_registry.getUpgradeStep(profile_id, step_id) 
    2426            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) 
    2629            logger.log(logging.INFO, msg) 
    2730        # We update the profile version to the last one we have reached 
    2831        # with running an upgrade step. 
    2932        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) 
    3134        return "Ran all reinstall steps." 
    3235 
     
    4447    """ Uninstall this product. 
    4548 
    46         This external method is need, because portal_quickinstaller doens't know 
    47         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. 
    4851    """ 
    4952    setup_tool = getToolByName(portal, 'portal_setup') 
  • quintagroup.plonegooglesitemaps/trunk/quintagroup/plonegooglesitemaps/Extensions/ping_googlesitemap.py

    r1593 r3152  
    11from zope.event import notify 
    22from quintagroup.plonegooglesitemaps.events import AfterTransitionEvent 
     3 
    34 
    45def pingGoogleSitemap(stch): 
     
    78           stch.transition, stch.status, stch.kwargs)) 
    89    return 0 
    9  
Note: See TracChangeset for help on using the changeset viewer.