- Timestamp:
- 10 Feb 2015, 09:37:53 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.ikoba/trunk/src/waeup/ikoba/browser/layout.py
r12235 r12576 190 190 hide_hint = True 191 191 192 def large_text_field(widget): 193 for i in ('body', 'frontpage', 'multilingual', 'condition'): 194 if i in widget.name: 195 return True 196 return False 197 192 198 class IkobaEditFormPage(UtilityView,EditForm): 193 199 """A megrok.layout.EditForm with additional methods. … … 199 205 super(IkobaEditFormPage,self).setUpWidgets(ignore_request) 200 206 for widget in self.widgets: 201 if 'address' in widget.name or \ 202 'comment' in widget.name or \ 203 'description' in widget.name or \ 204 'notice' in widget.name: 207 if not large_text_field(widget): 205 208 widget.height = 3 206 209 … … 214 217 super(IkobaAddFormPage,self).setUpWidgets(ignore_request) 215 218 for widget in self.widgets: 216 if 'address' in widget.name or \ 217 'comment' in widget.name or \ 218 'description' in widget.name or \ 219 'notice' in widget.name: 219 if not large_text_field(widget): 220 220 widget.height = 3 221 221
Note: See TracChangeset for help on using the changeset viewer.