[Catalog-sig] File size listing in cheeseshop
josepharmbruster at gmail.com
Fri Feb 22 18:28:49 CET 2008
I do not have a pypi configuration on my server anymore to test this out but I
think what you are asking for is a simple change to webui.py. There is a
pretty_size function that handles this. See the attached.
Tim Hatch wrote:
> I'd like to report a minor display nit with the cheeseshop. I hope
> this is the right place. In the cheeseshop, filesizes listed in MB
> have the numeric portion shown as an integer (rounded down). It
> seems to me that it'd be more logical to either round nearest or show
> a couple of decimal digits.
> For example, the py23 egg in http://pypi.python.org/pypi/Pygments is
> listed as "1MB" but is in reality 1,832,489 bytes (1.74MB).
> Catalog-SIG mailing list
> Catalog-SIG at python.org
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
More information about the Catalog-SIG