On Tue, Mar 30, 2010 at 08:40:05PM -0700, Mike Orr wrote:
> The format_data_size helper is implemented in WebHelpers tip.  This is
> the successor to number_to_human_size, and converts an int/float to
> kilobytes etc.  ``webhelpers.number.format_data_size()`` is the
> generic formatter, and ``format_byte_size()`` and
> ``format_bit_size()`` are derivatives.
> 
> Temporary documentation URL:
> 
> http://sluggo.scrapping.cc/tmp/webhelpers/modules/number.html

Nice!

I was left wondering about one thing: what would this print:

  >>> format_byte_size(1, full_name=True)

'1.0 bytes'?

> WebHelpers 1.0 final is just waiting for a Paginate update now, to
> make it work with Pylons 1.0/Routes 1.12.

Awesome.

Marius Gedminas
-- 
BASIC:
        A programming language.  Related to certain social diseases
        in that those who have it will not admit it in polite company.

Attachment: signature.asc
Description: Digital signature

Reply via email to