60 if props is not None and value and props.get('internationalizable'): |
60 if props is not None and value and props.get('internationalizable'): |
61 return req._(value) |
61 return req._(value) |
62 return value |
62 return value |
63 if attrtype == 'Date': |
63 if attrtype == 'Date': |
64 return ustrftime(value, req.property_value('ui.date-format')) |
64 return ustrftime(value, req.property_value('ui.date-format')) |
65 if attrtype in ('Time', 'TZTime'): |
65 if attrtype == 'Time': |
66 return ustrftime(value, req.property_value('ui.time-format')) |
66 return ustrftime(value, req.property_value('ui.time-format')) |
67 if attrtype in ('Datetime', 'TZDatetime'): |
67 if attrtype == 'TZTime': |
|
68 return ustrftime(value, req.property_value('ui.time-format')) + u' UTC' |
|
69 if attrtype == 'Datetime': |
68 if displaytime: |
70 if displaytime: |
69 return ustrftime(value, req.property_value('ui.datetime-format')) |
71 return ustrftime(value, req.property_value('ui.datetime-format')) |
|
72 return ustrftime(value, req.property_value('ui.date-format')) |
|
73 if attrtype == 'TZDatetime': |
|
74 if displaytime: |
|
75 return ustrftime(value, req.property_value('ui.datetime-format')) + u' UTC' |
70 return ustrftime(value, req.property_value('ui.date-format')) |
76 return ustrftime(value, req.property_value('ui.date-format')) |
71 if attrtype == 'Boolean': |
77 if attrtype == 'Boolean': |
72 if value: |
78 if value: |
73 return req._('yes') |
79 return req._('yes') |
74 return req._('no') |
80 return req._('no') |