Ignore:
Timestamp:
Aug 13, 2012 2:18:19 PM (7 years ago)
Author:
potar
Message:

fixed pep8

File:
1 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.plonegooglesitemaps/branches/sitemap_date/quintagroup/plonegooglesitemaps/setuphandlers.py

    r3163 r3501  
    3131            name = registration.name 
    3232            lsm.unregisterAdapter(factory=factory, 
    33                 required=required, provided=provided, name=name) 
     33                                  required=required, 
     34                                  provided=provided, 
     35                                  name=name) 
    3436            unregistered.append(str(required)) 
    35     logger.info("Unregistered news schema extender adapters for: %s" \ 
     37    logger.info("Unregistered news schema extender adapters for: %s" 
    3638                % unregistered) 
    3739 
     
    8789    if old_product in configlet_ids: 
    8890        controlpanel.unregisterConfiglet(old_product) 
    89         logger.info("Unregistered '%s' configlet from "\ 
     91        logger.info("Unregistered '%s' configlet from " 
    9092                    "portal_controlpanel tool." % old_product) 
    9193    # Remove qPloneGoogleSitemaps skin layer 
     
    9496        paths = [l.strip() for l in skin_paths if not l == old_product] 
    9597        if len(paths) < len(skin_paths): 
    96             logger.info("Removed '%s' from '%s' skin." \ 
     98            logger.info("Removed '%s' from '%s' skin." 
    9799                        % (old_product, skinName)) 
    98100        skins.addSkinSelection(skinName, ','.join(paths)) 
     
    103105    if smaps: 
    104106        logger.info(msg + "Process %s sitemaps." % ( 
    105                 [sm.getPath() for sm in smaps])) 
     107                    [sm.getPath() for sm in smaps])) 
    106108        fields = ['id', 'sitemapType', 'portalTypes', 'states', 
    107109                  'blackout_list', 'reg_exp', 'urls', 'pingTransitions'] 
     
    127129    catalog = getToolByName(site, 'portal_catalog') 
    128130    smaps = catalog(portal_type="Sitemap") 
    129     old_smb = [smb for smb in smaps \ 
     131    old_smb = [smb for smb in smaps 
    130132               if 'qPloneGoogleSitemaps' in str(smb.getObject().__class__)] 
    131133    return old_smb 
Note: See TracChangeset for help on using the changeset viewer.