Changeset 313
- Timestamp:
- 04/06/06 12:27:12
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
qSEOptimizer/trunk/skins/qSEOptimizer/2.1.1/listMetaTags.py
r312 r313 21 21 ('qSEO_Distribution','distribution'), 22 22 ] 23 23 24 if exposeDCMetaTags: 24 25 metadataList.append(('qSEO_Distribution', 'DC.distribution')) 26 25 27 for accessor, key in metadataList: 26 28 method = getattr(context, accessor, None) … … 41 43 value = ', '.join(value) 42 44 metaTags[key] = value 43 return metaTags.items() 45 46 # Reordering metaTags.items() to have primary metatags first (in specified order) 47 # and all other following them (in arbitrary order). 48 primary_metatags = ['description', 'keywords'] 49 return [(name,metaTags[name]) for name in primary_metatags if name in metaTags.keys()] + \ 50 [(name,metaTags[name]) for name in metaTags.keys() if name not in primary_metatags] qSEOptimizer/trunk/skins/qSEOptimizer/2.1.2/listMetaTags.py
r312 r313 21 21 ('qSEO_Distribution','distribution'), 22 22 ] 23 23 24 if exposeDCMetaTags: 24 25 metadataList.append(('qSEO_Distribution', 'DC.distribution')) 26 25 27 for accessor, key in metadataList: 26 28 method = getattr(context, accessor, None) … … 41 43 value = ', '.join(value) 42 44 metaTags[key] = value 43 return metaTags.items() 45 46 # Reordering metaTags.items() to have primary metatags first (in specified order) 47 # and all other following them (in arbitrary order). 48 primary_metatags = ['description', 'keywords'] 49 return [(name,metaTags[name]) for name in primary_metatags if name in metaTags.keys()] + \ 50 [(name,metaTags[name]) for name in metaTags.keys() if name not in primary_metatags]
