Changeset 3547 in products for quintagroup.seoptimizer/trunk/quintagroup/seoptimizer/browser/viewlets.py
- Timestamp:
- Sep 11, 2012 7:30:25 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
quintagroup.seoptimizer/trunk/quintagroup/seoptimizer/browser/viewlets.py
r3471 r3547 32 32 enc = getSiteEncoding(self.context) 33 33 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))) 35 35 for k, v in self.listMetaTags().items()]) 36 36 … … 48 48 adapter = IMappingMetaTags(self.context, None) 49 49 mapping_metadata = adapter and adapter.getMappingMetaTags() \ 50 50 or SortedDict() 51 51 52 52 if not use_all: … … 98 98 # Special cases 99 99 if accessor == 'Description' and \ 100 not 'description' in metadata_names:100 not 'description' in metadata_names: 101 101 result['description'] = escape(value) 102 102 elif accessor == 'Subject' and \ 103 not 'keywords' in metadata_names:103 not 'keywords' in metadata_names: 104 104 result['keywords'] = escape(value) 105 105 … … 130 130 # Filter out DWIMish artifacts on effective / expiration dates 131 131 if effective is not None and \ 132 effective > FLOOR_DATE and \133 effective != created:132 effective > FLOOR_DATE and \ 133 effective != created: 134 134 eff_str = effective.Date() 135 135 else: … … 147 147 # for given context and default from configlet 148 148 custom_meta_tags = seo_context and \ 149 149 seo_context['seo_customMetaTags'] or [] 150 150 for tag in custom_meta_tags: 151 151 if tag['meta_content']: … … 165 165 name=u'plone_context_state') 166 166 self.seo_context = getMultiAdapter((self.context, self.request), 167 167 name=u'seo_context') 168 168 169 169 self.override_title = self.seo_context['has_seo_title']
Note: See TracChangeset
for help on using the changeset viewer.