ethan mindlace fremen <[EMAIL PROTECTED]> 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


_______________________________________________
Zope maillist  -  [EMAIL PROTECTED]
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 )

Reply via email to