Roundup Tracker - Issues


Author ber
Recipients ber
Date 2009-07-08.10:44:17
Message-id <>
It would be nice to have a way to pretty print "Number"s.

It probably would be implemented in
roundup/cgi/ class NumberHTMLProperty()
    def pretty(self, format=_default)
similiar to the one for Date.

The use case is for attribues that are used as Integers
e.g. not displaying "90.0" and for numbers that are better shown
with spaces in front like amounts.
It could all be done with regular % python formatting.
Currently it cannot be done directly easily,
because the value can also be None, so __float__() from class Number
does not always work.
Date User Action Args
2009-07-08 10:44:18bersetmessageid: <>
2009-07-08 10:44:18bersetrecipients: + ber
2009-07-08 10:44:18berlinkissue2550559 messages
2009-07-08 10:44:17bercreate