Changeset 1816 in products
- Timestamp:
- Feb 24, 2010 12:06:14 PM (14 years ago)
- Location:
- quintagroup.seoptimizer/branches/refactoring2.3.0/quintagroup/seoptimizer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
quintagroup.seoptimizer/branches/refactoring2.3.0/quintagroup/seoptimizer/adapters.py
r1781 r1816 39 39 """ 40 40 request = self.context.REQUEST 41 meta_keywords = ''41 meta_keywords = [] 42 42 filtered_keywords = [] 43 43 portal_props = getToolByName(self.context, 'portal_properties') … … 45 45 seo_context = queryMultiAdapter((self.context, request), name='seo_context') 46 46 if seo_context: 47 meta_keywords = list(seo_context .meta_keywords())47 meta_keywords = list(seo_context['meta_keywords']) 48 48 return ', '.join(meta_keywords) 49 49 -
quintagroup.seoptimizer/branches/refactoring2.3.0/quintagroup/seoptimizer/browser/templates/seo_context_properties.pt
r1678 r1816 31 31 tal:define="errors python:request.get('errors', {}); 32 32 Iterator python:modules['Products.CMFPlone'].IndexIterator; 33 tabindex python:Iterator(mainSlot=False)"><!--TODO:implement validation and errors handling--> 33 tabindex python:Iterator(mainSlot=False); 34 seo_context here/@@seo_context"><!--TODO:implement validation and errors handling--> 34 35 <h1 i18n:translate="heading_edit_seo_properties">Edit SEO Properties</h1> 35 36 <div class="documentDescription" i18n:translate="description_edit_seo_properties"> … … 64 65 name="seo_title_override" 65 66 tabindex="" 66 tal:attributes="checked python:view.test( here.hasProperty('qSEO_title'), 'on', None);67 tal:attributes="checked python:view.test(seo_context['has_seo_title'], 'on', None); 67 68 tabindex tabindex/next;" 68 69 /> … … 77 78 value="" 78 79 tabindex="" 79 tal:attributes="value request/seo_title | here/@@seo_context/seo_title;80 tal:attributes="value request/seo_title | seo_context/seo_title; 80 81 tabindex tabindex/next;" 81 82 /> … … 92 93 name="seo_description_override" 93 94 tabindex="" 94 tal:attributes="checked python:view.test( here.hasProperty('qSEO_description'), 'on', None);95 tal:attributes="checked python:view.test(seo_context['has_seo_description'], 'on', None); 95 96 tabindex tabindex/next;" 96 97 /> … … 106 107 tabindex="" 107 108 tal:attributes="tabindex tabindex/next;" 108 tal:content="request/seo_description | here/@@seo_context/seo_description"109 tal:content="request/seo_description | seo_context/seo_description" 109 110 /> 110 111 </div> … … 125 126 name="seo_keywords_override" 126 127 tabindex="" 127 tal:attributes="checked python:view.test( here.hasProperty('qSEO_keywords'), 'on', None);128 tal:attributes="checked python:view.test(seo_context['has_seo_keywords'], 'on', None); 128 129 tabindex tabindex/next;" 129 130 /> … … 139 140 tabindex="" 140 141 tal:attributes="tabindex tabindex/next;" 141 tal:define="keywords request/seo_keywords | here/@@seo_context/seo_keywords"142 tal:define="keywords request/seo_keywords | seo_context/seo_keywords" 142 143 tal:content="python:'\n'.join(keywords)" 143 144 /> … … 155 156 name="seo_html_comment_override" 156 157 tabindex="" 157 tal:attributes="checked python:view.test( here.hasProperty('qSEO_html_comment'), 'on', None);158 tal:attributes="checked python:view.test(seo_context['has_html_comment'], 'on', None); 158 159 tabindex tabindex/next;" 159 160 /> … … 168 169 tabindex="" 169 170 tal:attributes="tabindex tabindex/next;" 170 tal:content="request/seo_html_comment | here/@@seo_context/seo_html_comment"171 tal:content="request/seo_html_comment | seo_context/seo_html_comment" 171 172 /> 172 173 </div> … … 183 184 name="seo_robots_override" 184 185 tabindex="" 185 tal:attributes="checked python:view.test( here.hasProperty('qSEO_robots'), 'on', None);186 tal:attributes="checked python:view.test(seo_context['has_seo_robots'], 'on', None); 186 187 tabindex tabindex/next;" 187 188 /> … … 196 197 value="" 197 198 tabindex="" 198 tal:attributes="value request/seo_robots | here/@@seo_context/seo_robots;199 tal:attributes="value request/seo_robots | seo_context/seo_robots; 199 200 tabindex tabindex/next;" 200 201 /> … … 212 213 name="seo_distribution_override" 213 214 tabindex="" 214 tal:attributes="checked python:view.test( here.hasProperty('qSEO_distribution'), 'on', None);215 tal:attributes="checked python:view.test(seo_context['has_seo_distribution'], 'on', None); 215 216 tabindex tabindex/next;" 216 217 /> … … 225 226 value="" 226 227 tabindex="" 227 tal:attributes="value request/seo_distribution | here/@@seo_context/seo_distribution;228 tal:attributes="value request/seo_distribution | seo_context/seo_distribution; 228 229 tabindex tabindex/next;" 229 230 /> … … 244 245 name="seo_canonical_override" 245 246 tabindex="" 246 tal:attributes="checked python:view.test( here.hasProperty('qSEO_canonical'), 'on', None);247 tal:attributes="checked python:view.test(seo_context['has_seo_canonical'], 'on', None); 247 248 tabindex tabindex/next;" 248 249 /> … … 258 259 value="" 259 260 tabindex="" 260 tal:attributes="value request/seo_canonical | here/@@seo_context/seo_canonical;261 tal:attributes="value request/seo_canonical | seo_context/seo_canonical; 261 262 tabindex tabindex/next;" 262 263 /> … … 264 265 <div class="field" 265 266 tal:define="fieldName string:seo_custommetatags; 266 nonEmptylocalMetaTags here/@@seo_context/seo_nonEmptylocalMetaTags;">267 nonEmptylocalMetaTags seo_context/seo_nonEmptylocalMetaTags;"> 267 268 <label i18n:translate="label_custom_metatags" for="seo_custom_metatags"> 268 269 Custom Meta Tags … … 288 289 tal:define="columnNames python:['meta name', 'meta content']; 289 290 columnIds python:['meta_name', 'meta_content']; 290 globalMT here/@@seo_context/seo_globalWithoutLocalCustomMetaTags;291 localMT here/@@seo_context/seo_localCustomMetaTags;">291 globalMT seo_context/seo_globalWithoutLocalCustomMetaTags; 292 localMT seo_context/seo_localCustomMetaTags;"> 292 293 <thead> 293 294 <tr>
Note: See TracChangeset
for help on using the changeset viewer.