Changeset 1831 in products
- Timestamp:
- Feb 25, 2010 3:17:37 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
quintagroup.seoptimizer/branches/refactoring2.3.0/quintagroup/seoptimizer/browser/views.py
r1827 r1831 28 28 def __init__(self, *args, **kwargs): 29 29 super(SEOContext, self).__init__(*args, **kwargs) 30 self.pcs = queryMultiAdapter((self.context, self.request), name="plone_portal_state") 31 self.gseo = queryAdapter(self.pcs.portal(), ISEOConfigletSchema) 30 self.pps = queryMultiAdapter((self.context, self.request), name="plone_portal_state") 31 self.pcs = queryMultiAdapter((self.context, self.request), name="plone_context_state") 32 self.gseo = queryAdapter(self.pps.portal(), ISEOConfigletSchema) 32 33 self._seotags = self._getSEOTags() 33 34 … … 38 39 def _getSEOTags(self): 39 40 seotags = { 40 "seo_title": self.getSEOProperty( 'qSEO_title', accessor='Title'),41 "seo_title": self.getSEOProperty( 'qSEO_title', default=self.pcs.object_title() ), 41 42 "seo_robots": self.getSEOProperty( 'qSEO_robots', default='ALL'), 42 43 "seo_description": self.getSEOProperty( 'qSEO_description', accessor='Description' ), 43 44 "seo_distribution": self.getSEOProperty( 'qSEO_distribution', default="Global"), 44 45 "seo_customMetaTags": self.seo_customMetaTags(), 45 "seo_globalWithoutLocalCustomMetaTags": self.seo_globalWithoutLocalCustomMetaTags(),46 46 "seo_localCustomMetaTags": self.seo_localCustomMetaTags(), 47 47 "seo_globalCustomMetaTags": self.seo_globalCustomMetaTags(), … … 134 134 """ 135 135 canpath = queryAdapter(self.context, interfaces.ISEOCanonicalPath) 136 return self.p cs.portal_url() + canpath.canonical_path()136 return self.pps.portal_url() + canpath.canonical_path() 137 137 138 138
Note: See TracChangeset
for help on using the changeset viewer.