[Catalog-sig] File size listing in cheeseshop

Joseph Armbruster josepharmbruster at gmail.com
Fri Feb 22 18:28:49 CET 2008


Tim,

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.

Joe


Tim Hatch wrote:
> Hi,
> 
> 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).
> 
> Tim
> _______________________________________________
> Catalog-SIG mailing list
> Catalog-SIG at python.org
> http://mail.python.org/mailman/listinfo/catalog-sig
> 

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: filesize.patch
Url: http://mail.python.org/pipermail/catalog-sig/attachments/20080222/be5a5148/attachment.txt 


More information about the Catalog-SIG mailing list