[Zope] How do I get the size of an item ?
Dimitris Andrakakis
dandraka_info@yahoo.com
Fri, 12 Jan 2001 20:32:28 +0200
ethan mindlace fremen <mindlace@digicool.com> wrote:
> <dtml-with files>
> <dtml-var "_.get_size(_['file01.pdf'])">
> </dtml-with>
Thanks ethan (& dieter too). I'm terribly sorry about requesting
a receipt (I had the option on OE forgotten), it will not happen again.
I have tried your suggestion, and indeed it works. Now, how does
this work when the "file.pdf" is given as a DTML-VAR ?
The situation is, I retrieve the file names from MySQL, so
what I actually have is a <dtml-var "path[12:]">. "Path" is
something like "06-01-2001/file.pdf". So I try this, but it
won't work (it won't parse, actually).
<dtml-with files>
<dtml-var "_.get_size(_['<dtml-var "path[11:]">'])">
</dtml-with>
I guess my question is actually about nested DTML, isn't it ?
Dimitris
http://atlas.central.ntua.gr:8000