Changeset 12362 for main/waeup.ikoba/trunk
- Timestamp:
- 1 Jan 2015, 22:37:29 (10 years ago)
- Location:
- main/waeup.ikoba/trunk/src/waeup/ikoba/products
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.ikoba/trunk/src/waeup/ikoba/products/browser.py
r12361 r12362 149 149 grok.name('index') 150 150 grok.require('waeup.Public') 151 grok.template('productpage') 151 152 #grok.template('basepage') 152 form_fields = grok.AutoFields(IProduct) 153 form_fields = grok.AutoFields(IProduct).omit('terms_and_conditions') 153 154 pnav = 1 154 155 … … 156 157 def label(self): 157 158 return self.context.title 159 160 @property 161 def terms_and_conditions(self): 162 lang = self.request.cookies.get('ikoba.language') 163 html = self.context.tc_dict.get(lang,'') 164 if html =='': 165 portal_language = getUtility(IIkobaUtils).PORTAL_LANGUAGE 166 html = self.context.tc_dict.get(portal_language,'') 167 return html 158 168 159 169
Note: See TracChangeset for help on using the changeset viewer.