[Zope] displaying FileSize in KB or MB in stead of bytes (newbie)
Jens Vagelpohl
jens@zope.com
Mon, 3 Jun 2002 09:29:38 -0400
all those management screens live on the filesystem and are discoverable
with filesystem tools. grep is your friend. take a look at
<zope>/lib/python/OFS/dtml/main.dtml.
all you need to do is division by 1024 to get a KB value or by 1048576
(1024*1024) for a MB value.
jens
On Monday, June 3, 2002, at 06:44 , Roel Van den Bergh wrote:
> When I call the '&dtml-size' or '<dtml-var (get_)size>' the bytesize is
> displayed.
> When using the ZMI U get a MB or KB recalculation of the filesize.
> Can I call this recalculation from within a document?
> Or do I have to write a script myself?
>
> TIA Roel.