Changeset 3224 in products for quintagroup.seoptimizer/trunk/quintagroup/seoptimizer/browser/views.py
- Timestamp:
- Jun 1, 2011 3:38:29 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
quintagroup.seoptimizer/trunk/quintagroup/seoptimizer/browser/views.py
r3141 r3224 65 65 'Subject', ()), 66 66 "seo_keywords": self.getSEOProperty('qSEO_keywords', default=()), 67 "seo_canonical": self.get Canonical(),67 "seo_canonical": self.getSEOProperty(CANONICAL_PROPERTY), 68 68 # Add test properties 69 69 "has_seo_title": self.context.hasProperty('qSEO_title'), … … 158 158 return result 159 159 160 # Not used 160 161 def getCanonical(self): 161 canonical = queryAdapter(self.context, ICanonicalLink) 162 return canonical and canonical.canonical_link or "" 162 # TODO: rewrite function structure 163 if self.context.hasProperty(CANONICAL_PROPERTY): 164 canonical = queryAdapter(self.context, ICanonicalLink) 165 return canonical and canonical.canonical_link or "" 166 return "" 163 167 164 168
Note: See TracChangeset
for help on using the changeset viewer.