Re: [Zope] How do I get the size of an item ?

2001-01-12 Thread Dimitris Andrakakis
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

Re: [Zope] How do I get the size of an item ?

2001-01-12 Thread Dieter Maurer
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 to FAQ's. I think, you will also find a compiled FAQ list via the Zope documentation portal (zdp.zope.org). This

Re: [Zope] How do I get the size of an item ?

2001-01-12 Thread Dimitris Andrakakis
Daniel wrote: You don't need the dtml-var inside another dtml-var i.e once you are in dtml you are in it. try something like this dtml-with files dtml-var "_.get_size(_['path[11:]'])" /dtml-with Your advice was truly enlightning ! It didn't work exactly like this, but this one did

[Zope] How do I get the size of an item ?

2001-01-11 Thread Dimitris Andrakakis
...anyone ? Say I have these folders: / /news /news/files What I need is, from a dtml method in /news, to get the size of an object (a file, say /news/files/file01.pdf) in /news/files. Thanks in advance, Dimitris ___ Zope maillist - [EMAIL

Re: [Zope] How do I get the size of an item ?

2001-01-11 Thread ethan mindlace fremen
Dimitris Andrakakis wrote: ...anyone ? Say I have these folders: / /news /news/files What I need is, from a dtml method in /news, to get the size of an object (a file, say /news/files/file01.pdf) in /news/files. dtml-with files dtml-var "_.get_size(_['file01.pdf'])" /dtml-with

Re: [Zope] How do I get the size of an item ?

2001-01-11 Thread Dieter Maurer
Dimitris Andrakakis writes: What I need is, from a dtml method in /news, to get the size of an object (a file, say /news/files/file01.pdf) in /news/files. You know Zope's integrated online help? There you would find that files have a method "getSize" that returns their size. In