[Zope] Help! Why doesn't this work...

David C. Morrill dmorrill@austin.rr.com
Thu, 14 Oct 1999 17:19:49 -0500


> How does that differ from ...
>
>  <dtml-in "PARENTS[0].objectValues(['DTML Document'])">
>    <dtml-var id>
>  </dtml-in>
>
> ... as another member suggested?

It doesn't. However, I made the mistake of trying to simplify the actual
problem I was having, which was to get the set of DTML documents having a
certain property defined. I just simplified it to using 'id' because that
showed the problem as well as the more complex form I was actually trying to
use:

<dtml-in "PARENTS[0].objectValues(['DTML Document'])">
    <dtml-if "_.getitem('sequence-item').hasProperty('isMenu')">
       ...do stuff using <dtml-var id>...
    </dtml-if>
</dtml-in>

My mistake. Next time I'll state the complete problem in all its gory
details :)

Dave Morrill