[Zope] folder.objectValues() help
Andreas Jung
andreas at andreas-jung.com
Mon Aug 18 21:17:32 EDT 2003
--On Montag, 18. August 2003 13:10 Uhr -0500 BZ <bz at bwanazulia.com> 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)
>
> These do not work:
> <dtml-in "folder.objectValues('Item Name') and approved" size="3">
> <dtml-in "folder.objectValues('Item Name' and approved)" size="3">
There is no documentation that shows such a syntax. So why do you assume
that this should work?
>
> This works:
> <dtml-in "folder.objectValues('Item Name') reverse size="3">
> <dtml-if approved>
>
Use the ZCatalog and create a PathIindex and a FieldIndex for 'approved'
and then rephrase your problem using a ZCatalog search.
-aj
More information about the Zope
mailing list