Ignore:
Timestamp:
Apr 18, 2011 2:32:21 PM (13 years ago)
Author:
zidane
Message:

fixes pep8

File:
1 edited

Legend:

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

    r2139 r3134  
    1111UNINSTALL = 'profile-%s:uninstall' % PROJECT_NAME 
    1212 
     13 
    1314def install(portal, reinstall=False): 
    1415    """ (Re)Install this product. 
    1516 
    16         This external method is need, because portal_quickinstaller doens't know 
    17         what GenericProfile profile to apply when reinstalling a product. 
     17        This external method is need, because portal_quickinstaller doens't 
     18        know what GenericProfile profile to apply when reinstalling a product. 
    1819    """ 
    1920    setup_tool = getToolByName(portal, 'portal_setup') 
     
    2122        step = None 
    2223        profile_id = 'quintagroup.seoptimizer:default' 
    23         steps_to_run = [s['id'] for s in setup_tool.listUpgrades(profile_id, show_old=False)] 
     24        steps_to_run = [s['id'] for s in \ 
     25                        setup_tool.listUpgrades(profile_id, show_old=False)] 
    2426        for step_id in steps_to_run: 
    2527            step = _upgrade_registry.getUpgradeStep(profile_id, step_id) 
    2628            step.doStep(setup_tool) 
    27             msg = "Ran upgrade step %s for profile %s" % (step.title, profile_id) 
     29            msg = "Ran upgrade step %s for profile %s" \ 
     30                  % (step.title, profile_id) 
    2831            logger.log(logging.INFO, msg) 
    2932        # We update the profile version to the last one we have reached 
    3033        # with running an upgrade step. 
    3134        if step and step.dest is not None and step.checker is None: 
    32            setup_tool.setLastVersionForProfile(profile_id, step.dest) 
     35            setup_tool.setLastVersionForProfile(profile_id, step.dest) 
    3336        return "Ran all reinstall steps." 
    3437    else: 
     
    3639        return "Ran all install steps." 
    3740 
     41 
    3842def uninstall(portal, reinstall=False): 
    3943    """ Uninstall this product. 
    4044 
    41         This external method is need, because portal_quickinstaller doens't know 
    42         what GenericProfile profile to apply when uninstalling a product. 
     45        This external method is need, because portal_quickinstaller doens't 
     46        know what GenericProfile profile to apply when uninstalling a product. 
    4347    """ 
    4448    setup_tool = getToolByName(portal, 'portal_setup') 
Note: See TracChangeset for help on using the changeset viewer.