[Zope] Searching ZCatalog on multiple properties

Andy McKay andym@ActiveState.com
Thu, 15 Feb 2001 12:14:30 -0800


Ah sorry, yes uniqueValuesFor just returns the index straight from ZCatalog
without any filtering, no matter you put, its not going to filter. Either
change the behaviour of ZCatalog or do a much more expensive query that
filters the results.
--
  Andy McKay.


----- Original Message -----
From: "Chris Muldrow" <muldrow@mac.com>
To: "Andy McKay" <andym@activestate.com>; <zope@zope.org>
Sent: Thursday, February 15, 2001 11:50 AM
Subject: Re: [Zope] Searching ZCatalog on multiple properties


> I see what you're getting at, but I don't think I was specific enough in
my
> question. What I want to do is limit the names shown to the user before
they
> actually make a search. Right now, the uniqueValuesFor('User') queries all
> of the stories in the catalog and returns a Select list of all of the
Users
> who have written stories. I want to limit that Select list rather than
only
> limiting the search results.
>
>
>
> on 2/15/01 2:39 PM, Andy McKay at andym@ActiveState.com wrote:
>
> > Setting variables in the REQUEST is bad but always works reliably. These
can
> > be set in the form that posts to the search (see Zope.org) or as a last
> > resort do:
> >
> > <dtml-call "REQUEST.set('Column', 'Category')">
> > <dtml-in NewsCatalog>
> >
> >
> > --
> > Andy McKay.
>
>
> _______________________________________________
> 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 )
>