13 Aug
2003
13 Aug
'03
6:48 p.m.
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