[Zope] dtml-return question
David Salgado
David@connmed.co.uk
Mon, 17 Jan 2000 17:16:42 -0000
>When I execute the DTMLMethod containing the code above, I get no output
>for the dtml-in. However, if I do the following in the method above
>(instead of using the allNewsArticles method), I do get output:
>
><dtml-in "PARENTS[1].objectValues('NewsArticle')">
> <... do stuff here ...>
></dtml-in>
I had a problem which might be similar -- instead of the returned value, my
reference to the method was dropping the source-code of the method into the
calling script! My problem went away when I wrapped the dtml-in in a
dtml-let. i.e.
<dtml-let foo=allNewsArticles>
<dtml-in foo>
<... do stuff here...>
</dtml-in>
</dtml-let>
...sorted my problem, but YMMV.
HTH
David