[Zope] Object File Size...
Thierry Florac
thierry.florac@onf.fr
03 Jul 2002 12:38:34 +0200
Just do, for example:
<dtml-in "objectValues('External File')">
<dtml-var "title_or_id()"> <dtml-var "get_size()"> bytes.<br>
</dtml-in>
Of course, this will only work for objects providing the "get_size"
method...
Thierry
On Wed, 2002-07-03 at 08:53, Michael Fox wrote:
> Hi Thierry,
>
> Do you have an example of how I can do this in a dtml-var ?
>
> Regards,
> Michael
>
> -----Original Message-----
> From: Thierry Florac [mailto:thierry.florac@onf.fr]
> Sent: Wednesday, 3 July 2002 4:51 PM
> To: Michael Fox
> Cc: zope@zope.org
> Subject: Re: [Zope] Object File Size...
>
>
> I think you should use the "get_size" method provided by external
> files...
>
> Thierry
>
>
> On Wed, 2002-07-03 at 08:34, Michael Fox wrote:
> > Hi *,
> >
> > How can I render an object's file size in a DTML Document, similar to "Size" in the Zope management interface?
> >
> > eg.
> >
> > Type Name Size Last Modified
> > [External File] myfile.exe [External Editor] 2.38 Mb 2002-07-02 13:27
> >
> > ^^^
> >
> > Cheers,
> > Michael
> >
> >
> > _______________________________________________
> > Zope maillist - Zope@zope.org
> > http://lists.zope.org/mailman/listinfo/zope
> > ** No cross posts or HTML encoding! **
> > (Related lists -
> > http://lists.zope.org/mailman/listinfo/zope-announce
> > http://lists.zope.org/mailman/listinfo/zope-dev )
> >
> --
> Linux every day, keeps Dr Watson away...
> http://gpc.tuxfamily.org -- http://www.ulthar.net
>
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )
>