Dimitris Andrakakis writes:
> <dtml-var "_.get_size(_['<dtml-var "path[11:]">'])">
This is an FAQ (as you can imagine).
The list has a searchable archive, where you can find anwsers
I think, you will also find a compiled FAQ list via the
Zope documentation portal (zdp.zope.org).
This time, still , I will answer your question:
if you would like to use "<dtml-var ...>" inside
a Python expression, you can simply omit it
(just use the "...") in most cases.
It is more safe, however, to use "_[...]" instead,
as this gives the same result.
In your case (I suppose "path" is a string giving the filename
(without path component) that can access the file from the
you could probably use:
If "path[11:]" contains pathname component, you probably
will need to use "restrictedTraverse" (--> Online API reference).
Zope maillist - [EMAIL PROTECTED]
** No cross posts or HTML encoding! **
(Related lists -