[uilib] add missing printer for integers
authorAdrien Di Mascio <Adrien.DiMascio@logilab.fr>
Thu, 20 Oct 2011 14:22:16 +0200
changeset 7971 3e51c2a577dd
parent 7970 83075d897943
child 7973 64639bc94e25
[uilib] add missing printer for integers
uilib.py
--- a/uilib.py	Thu Oct 20 14:20:46 2011 +0200
+++ b/uilib.py	Thu Oct 20 14:22:16 2011 +0200
@@ -61,6 +61,9 @@
         return req._(value)
     return value
 
+def print_int(value, req, props, displaytime=True):
+    return unicode(value)
+
 def print_date(value, req, props, displaytime=True):
     return ustrftime(value, req.property_value('ui.date-format'))
 
@@ -124,6 +127,8 @@
 PRINTERS = {
     'Bytes': print_bytes,
     'String': print_string,
+    'Int': print_int,
+    'BigInt': print_int,
     'Date': print_date,
     'Time': print_time,
     'TZTime': print_tztime,