common/uilib.py
branch3.5
changeset 3165 0a50ebe53db7
parent 3002 a9d7eaa07475
child 3185 bd0126d17e83
child 3212 07d11bacfefe
--- a/common/uilib.py	Tue Sep 08 20:08:10 2009 +0200
+++ b/common/uilib.py	Tue Sep 08 17:27:33 2009 -0700
@@ -31,7 +31,7 @@
     return 'Any X WHERE X eid %s' % eid
 
 
-def printable_value(req, attrtype, value, props=None, displaytime=True):
+def printable_value(req, attrtype, value, props=None):
     """return a displayable value (i.e. unicode string)"""
     if value is None or attrtype == 'Bytes':
         return u''
@@ -46,8 +46,6 @@
     if attrtype == 'Time':
         return ustrftime(value, req.property_value('ui.time-format'))
     if attrtype == 'Datetime':
-        if not displaytime:
-            return ustrftime(value, req.property_value('ui.date-format'))
         return ustrftime(value, req.property_value('ui.datetime-format'))
     if attrtype == 'Boolean':
         if value: