[Zope] Catalog - exclusive-or?

Florent Guillaume fg at nuxeo.com
Tue Jul 6 14:02:04 EDT 2004


>     given a FieldIndex F, an object o, and a query parameter foo,
>         o is a match if 
>             o's value for F is foo
>         or
>             o's value for F is "default" AND there are no relatives
>             of o whose value for F is foo
> 
> I think I could implement this with a bunch of post-processing of 
> the query results, but that seems likely to be slowwww.

You use "relatives" objects, that's a relational query... ZCatalog
cannot do that. You'll have to post-process or, maybe better,
pre-process. Or use SQL.

Florent

-- 
Florent Guillaume, Nuxeo (Paris, France)
+33 1 40 33 79 87  http://nuxeo.com  mailto:fg at nuxeo.com


More information about the Zope mailing list