Ignore:
Timestamp:
Apr 2, 2012 1:04:35 PM (12 years ago)
Author:
potar
Message:

Fixing pep8

File:
1 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.plonetabs/branches/tests/quintagroup/plonetabs/Extensions/Install.py

    r865 r3402  
    1414) 
    1515 
     16 
    1617def install(self, reinstall=False): 
    1718    """Install a set of products (which themselves may either use Install.py 
    1819    or GenericSetup extension profiles for their configuration) and then 
    1920    install a set of extension profiles. 
    20      
     21 
    2122    One of the extension profiles we install is that of this product. This 
    2223    works because an Install.py installation script (such as this one) takes 
    23     precedence over extension profiles for the same product in  
    24     portal_quickinstaller.  
    25      
     24    precedence over extension profiles for the same product in 
     25    portal_quickinstaller. 
     26 
    2627    We do this because it is not possible to install other products during 
    2728    the execution of an extension profile (i.e. we cannot do this during 
    2829    the importVarious step for this profile). 
    2930    """ 
    30      
     31 
    3132    portal_quickinstaller = getToolByName(self, 'portal_quickinstaller') 
    3233    portal_setup = getToolByName(self, 'portal_setup') 
     
    3940            portal_quickinstaller.installProduct(product) 
    4041            transaction.savepoint() 
    41      
     42 
    4243    for extension_id in EXTENSION_PROFILES: 
    43         portal_setup.runAllImportStepsFromProfile('profile-%s' % extension_id, purge_old=False) 
     44        portal_setup.runAllImportStepsFromProfile('profile-%s' % extension_id, 
     45                                                  purge_old=False) 
    4446        product_name = extension_id.split(':')[0] 
    4547        portal_quickinstaller.notifyInstalled(product_name) 
    4648        transaction.savepoint() 
    4749 
     50 
    4851def uninstall(self): 
    4952    portal_setup = getToolByName(self, 'portal_setup') 
    5053    for extension_id in UNINSTALL_PROFILES: 
    51         portal_setup.runAllImportStepsFromProfile('profile-%s' % extension_id, purge_old=False) 
     54        portal_setup.runAllImportStepsFromProfile('profile-%s' % extension_id, 
     55                                                  purge_old=False) 
    5256        product_name = extension_id.split(':')[0] 
    5357        transaction.savepoint() 
Note: See TracChangeset for help on using the changeset viewer.