<dtml-var "_.getitem(myVariable)"> ----- Original Message ----- From: "Tommy Johnson" <tommy@7x.com> To: "Zope List" <zope@zope.org> Sent: Wednesday, June 27, 2001 1:11 AM Subject: [Zope] Evaluating a variable that contains a method
Hello all,
Here's the situation, and I believe it could work - I just need to find the proper syntax.
I have a variable that will contain the name of a DTML method; let's call the variable myVariable. Now, through some code logic, I set the variable to equal the name of a DTML method; which we'll call methodA. In that method, I only have some text. So:
myVariable = methodA methodA --> (contains the text) --> This is some generic text for this particular method ....
Now, here's the situation. I want to display this variable, which should call the method, which should render the text inside. Currently, I'm doing this:
<dtml-var name="myVariable"> but I've also tried <dtml-var expr="myVariable">
This will return the name of the method (methodA), but not render what's INSIDE methodA. Does anyone have an idea on how to do that?
Thanks in advance, Tommy
_______________________________________________ Zope maillist - Zope@zope.org 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 )