[Zope-CMF] Merging two catalog searches...
Andreas Jung
andreas at andreas-jung.com
Tue Dec 23 11:32:07 EST 2003
you can combine the results of two searches using the '+' operator or pass
multiple arguments to meta_type a list. Check the Searching chapter of the
Zope Book
for details.
-aj
--On Dienstag, 23. Dezember 2003 14:30 Uhr +0000 Braun Brelin
<bbrelin at openapp.biz> wrote:
> Hello all, I have a function that looks like this:
>
>
>
> tal:define="results python:container.portal_catalog(meta_type='News
> Item',
>
> sort_on='created',
>
> sort_order='reverse',
> expires =
> {'query': here.ZopeTime(), 'range': 'min'},
>
> review_state='published)"
>
> The ZPT then goes on to manipulate the results variable (iterates over
> it etc.).
>
> What I want to do is have results contain two portal_catalog searches,
> each with a different meta_type.
> How can I do this?
>
> Thanks,
>
> Braun Brelin
>
>
>
>
>
> _______________________________________________
> Zope-CMF maillist - Zope-CMF at zope.org
> http://mail.zope.org/mailman/listinfo/zope-cmf
>
> See http://collector.zope.org/CMF for bug reports and feature requests
More information about the Zope-CMF
mailing list