[Zope-dev] An idea for UniqueValuesFor

Chris Withers chrisw@nipltd.com
Sat, 04 Aug 2001 13:02:29 +0100


Casey Duncan wrote:
> 
> http://www.zope.org/Members/Kaivo/CatalogQuery
> 
> This is my first stab at this. 

Looks cool :-)

> I forsee a much more general query
> mechanism in the future, but this works better than the stock stuff (for
> me) and it works today!

> Let me know what your ideas are...

Ah, well, yours are based around a text-based query system. I just want to build
an object-based query system that will let you powerfully and unambigously query
a ZCatalog.

So, for example, something like:

brains = catalog.search(Q(myindex='Fish') & Q(blah=1),
sort=('date','blah','myindex'), uniqueValuesFor='myindex'))

...if you see what I mean.

What do you think?

cheers,

Chris