[Zope] Re: joining zcatalog search results

Maik Jablonski maik.jablonski@uni-bielefeld.de
Tue, 12 Nov 2002 16:56:10 +0100


Luton, Alex wrote:

> want to search a zcatalog of dtml pages based on their text content and
> title. At the moment, I'm doing  two separate searches and concatenating
> the results using a script, much the same as the example in the zope
> book. When the two results are concatenated duplicates may occur, so I'm
> looking for a way to join the two correctly. This must be a fairly
> common requirement, but I can't find any similar examples. Here's my
> python script:


hi,

you have to remove duplicates from a sequence. here are some nice howtos:

http://www.python.org/cgi-bin/faqw.py?req=show&file=faq04.064.htp
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/52560

cheers, maik