[Zope] folder.objectValues() help

Kevin Carlson khcarlso at bellsouth.net
Mon Aug 18 15:29:05 EDT 2003


BZ wrote:

>I would like to get back a list of objects, from a folder that have a
>parameter checked off in them:
>
>So, I would like to get back a list of items "Item Name" that also have
>been approved (check box value)
>
>  
>
You can use list comprehensions to do this (untested):

<dtml-in "[item for item in folder.objectValues('Item Name') if 
item.approved]">

</dtml-in>





More information about the Zope mailing list