[Zope] "dtml-in" question

Ed Leafe ed@leafe.com
Fri, 24 Jan 2003 08:23:29 -0500


On Friday, January 24, 2003, at 06:38  AM, Thierry Florac wrote:

> A little question about the "dtml-in" tag.
>
> What I'd like to do is to build a list according to a property value,
> like we can do with for "for" Python instruction, something like :
>
>   <dtml-in "object for object in objectValues() if object.visible">
>
> Is there any way to achieve this, without writing a custom method ??

<dtml-in objectValues()>
    <dtml-if visible>
    ...
    </dtml-if>
</dtml-in>


      ___/
     /
    __/
   /
  ____/
  Ed Leafe
  http://leafe.com/
  http://opentech.leafe.com