[Zope] ZCatalog results.

Sidnei da Silva sidnei@x3ng.com.br
Tue, 26 Feb 2002 13:02:28 -0300


How?

Em Seg 25 Fev 2002 13:52, Frank Tegtmeyer escreveu:
> 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
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )

-- 
Sidnei da Silva
X3ng Web Technology
sidnei@x3ng.com.br