[Zope] ZCatalog results.

Frank Tegtmeyer fte@lightwerk.com
25 Feb 2002 17:52:43 +0100


Sidnei da Silva <sidnei@x3ng.com.br> writes:

> seen = {}
> unique = []
> for r in result:
>   if not seen.has_key(r.data_record_id_):
>     seen[r.data_record_id_] = r.data_record_id_
>     unique.append(r)
> 
> return unique
> 
> It works OK. Thanx everyone. 

You may reduce this to one dictionary :)

Regards, Frank