[Zope] catalog search on a lines property?

Dieter Maurer dieter at handshake.de
Wed Aug 13 21:48:48 EDT 2003


Mark Nenadov wrote at 2003-8-13 08:40 -0400:
 > I'm working with a zclass that has a 'lines' property (for the sake of
 > discussion, it will be called 'listing_cats').
 > 
 > The lines property is a list of numbers (which are id's). I want to go
 > through my Catalog and find all objects that have a list_cats that
 > contains a given id (lets say 4928 for example). For my examples, the id
 > will be called 'current_id'.

The value maintained in a "lines" property is a sequence (in fact a list).
Sequences values call for a "KeywordIndex".
Please read the corresponding section in the Zope Book.

With a KeywordIndex, your task becomes trivial.


Dieter



More information about the Zope mailing list