[Zope] dtml-in and objectValues...
Dieter Maurer
dieter@handshake.de
Fri, 29 Mar 2002 13:27:33 +0100
Lars Heber writes:
> I couldn't find a solution on the list, although there are many postings
> with the same subject...
>
> So here it is:
>
> I want to build my own list of sub-objects of a folder in order to sort
> some of them out of my list. What I'm doing is (in a DTML method!):
>
> [snip...]
> <dtml-in "objectValues(['News-Item'])">
> <dtml-if someCondition><dtml-call
> "myList.append(_['sequence-item'])"></dtml-if>
> </dtml-in>
>
> What I get is a list of the RENDERED News-Items. But I want a list of
> the objects itselves.
Please read the "Name lookup" section of
<http://www.dieter.handshake.de/pyprojects/zope/book/chap3.html>
Alternatively, reread the answers to the many postings on the list.
You missed tons of solutions to your problem...
Dieter