Ignore:
Timestamp:
Sep 11, 2012 7:30:25 AM (12 years ago)
Author:
ktarasz
Message:

fix pep8

File:
1 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.seoptimizer/trunk/quintagroup/seoptimizer/browser/viewlets.py

    r3471 r3547  
    3232        enc = getSiteEncoding(self.context) 
    3333        sfuncd = lambda x, enc=enc: safe_unicode(x, enc) 
    34         return u'\n'.join([TEMPLATE % tuple(map(sfuncd, (k, v))) \ 
     34        return u'\n'.join([TEMPLATE % tuple(map(sfuncd, (k, v))) 
    3535                           for k, v in self.listMetaTags().items()]) 
    3636 
     
    4848        adapter = IMappingMetaTags(self.context, None) 
    4949        mapping_metadata = adapter and adapter.getMappingMetaTags() \ 
    50                            or SortedDict() 
     50            or SortedDict() 
    5151 
    5252        if not use_all: 
     
    9898            # Special cases 
    9999            if accessor == 'Description' and \ 
    100                not 'description' in metadata_names: 
     100                    not 'description' in metadata_names: 
    101101                result['description'] = escape(value) 
    102102            elif accessor == 'Subject' and \ 
    103                  not 'keywords' in metadata_names: 
     103                    not 'keywords' in metadata_names: 
    104104                result['keywords'] = escape(value) 
    105105 
     
    130130            # Filter out DWIMish artifacts on effective / expiration dates 
    131131            if effective is not None and \ 
    132                effective > FLOOR_DATE and \ 
    133                effective != created: 
     132                    effective > FLOOR_DATE and \ 
     133                    effective != created: 
    134134                eff_str = effective.Date() 
    135135            else: 
     
    147147        # for given context and default from configlet 
    148148        custom_meta_tags = seo_context and \ 
    149                            seo_context['seo_customMetaTags'] or [] 
     149            seo_context['seo_customMetaTags'] or [] 
    150150        for tag in custom_meta_tags: 
    151151            if tag['meta_content']: 
     
    165165                                             name=u'plone_context_state') 
    166166        self.seo_context = getMultiAdapter((self.context, self.request), 
    167                                              name=u'seo_context') 
     167                                           name=u'seo_context') 
    168168 
    169169        self.override_title = self.seo_context['has_seo_title'] 
Note: See TracChangeset for help on using the changeset viewer.