- Timestamp:
- 21 Sep 2012, 08:19:35 (12 years ago)
- Location:
- main/waeup.kofa/branches/uli-zc-async
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/branches/uli-zc-async
- Property svn:mergeinfo changed
/main/waeup.kofa/branches/uli-async-update removed /main/waeup.kofa/branches/uli-autoinclude-less removed /main/waeup.kofa/trunk removed
- Property svn:mergeinfo changed
-
main/waeup.kofa/branches/uli-zc-async/src/waeup/kofa/browser/layout.py
r9209 r9211 191 191 grok.baseclass() 192 192 template = default_waeup_display_template 193 hide_hint = True194 193 195 194 class KofaEditFormPage(UtilityView,EditForm): … … 216 215 if self.widgets.get('perm_address'): 217 216 self.widgets['perm_address'].cssClass = 'span8' 218 self.widgets['perm_address'].height = 6 219 if self.widgets.get('next_kin_address'): 220 self.widgets['next_kin_address'].cssClass = 'span8' 221 self.widgets['next_kin_address'].height = 6 222 if self.widgets.get('notice'): 223 self.widgets['notice'].cssClass = 'span8' 224 self.widgets['notice'].height = 6 217 self.widgets['perm_address'].height = 10 225 218 if self.widgets.get('description'): 226 219 self.widgets['description'].cssClass = 'span12' … … 313 306 else: 314 307 return None 315 316 def formatTZDate(self,datetimeobj):317 if isinstance(datetimeobj, datetime):318 tz = getUtility(IKofaUtils).tzinfo319 date = to_timezone(320 datetimeobj, tz).strftime("%d/%m/%Y")321 return date322 else:323 return None324 308 325 309 def update(self):
Note: See TracChangeset for help on using the changeset viewer.