[silva-dev] [silva-cvs] Silva/views convertBytesToHumanReadable.py
Clemens Robbenhaar
robbenhaar at espresto.com
Mon Aug 4 11:46:01 CEST 2003
Hi,
as I read the following mail from the cvs-trigger, I have just a remark
and a question:
>
> Added Files:
> convertBytesToHumanReadable.py
>
> log message from zagy
> ----------------------------
> function to convert an integer representing a file size into something
> human readable (meaning 1.8M)
> The current threashold for increasing the magninute is 500, meaning
> you'll get 499 K, and then 0.49 M for a 500 K file.
>
a) I guess I could use this script for my stuff, too, throwing away the
implementation in my custom product, because the treshold here look
like a much better idea :-)
b) Would 'service_utils' not make a better place for such hepler script?
Some widgets could use this script, too, if it would be in that place.
As far as I know there is no explicit policy where to put such
scripts; I would like to have such things in 'service_utils', but maybe
there is a good reason not to do it. (Maybe 'service_utils' have been
deprecated inbetween anyway?)
Just a question.
Clemens
More information about the silva-dev
mailing list