[Zope] ZCatalog - perfoming an or operation on different
columns
Casey Duncan
casey@zope.com
Mon, 22 Jul 2002 19:20:18 -0400
If you install my CatalogQuery product you can write:
Catalog.query('meta_type==['DTML Method','ZCatalog'] or title==``song``')
It will not return any dupes.
Also, this:
<dtml-var "Catalog.getpath(data_record_id_)">
Can be replaced by:
<dtml-var getURL>
see: http://www.zope.org/Members/Caseman/ZCatalog_for_2.3
hth,
-Casey
On Mon, 22 Jul 2002 16:58:12 -0300
"Marcos Iuato" <marcos@hiper.com.br> wrote:
> To perform a search in zcatalog in a different colums with an or operation,
> I am joining the results lists with the following code:
> <dtml-let resa="Catalog(meta_type=['DTML Method','ZCatalog'])"
> resb="Catalog(title='Song')"
> res="resa[:_.len(resa)] + resb[:_.len(resb)]">
> <dtml-in res>
> A Match: <dtml-var "Catalog.getpath(data_record_id_)"><br>
> </dtml-in>
> </dtml-let>
>
> But how can I avoid the duplicated matches of a results list from resa +
> resb ?
> Regards
> Marcos Iuato
>
>