[Zope] Evaluating a variable that contains a method

Tommy Johnson tommy@7x.com
Tue, 26 Jun 2001 16:53:39 -0800


> Actually, try
>
> <dtml-var "_.getitem(myVariable,1)">
>
> It's the 1 that renders it.

Thank you. I should also mention that I found anothere syntax to do it also.
It is slightly different than the underscore syntax I'm used to trying.

<dtml-var expr="_[myVariable]"> instead of what I also tried, which was
<dtml-var expr="_['myVariable']">

The previous one works, where as the latter one just prints out 'methodA'.

Thanks again,
Tommy