[Zope] sql like functionality to query zcatalogs

Andrew Veitch andrew at logicalprogression.net
Fri Apr 16 10:55:07 EDT 2004


Hi Joel

> For example:
> select * from zcatalog where price > 2.5 and price < 2.75

result = Catalog(price = {'query': [2.5, 2.75],
                          'range': 'minmax'})

should do the job.

price would have to be a FieldIndex.

See 
http://zope.org/Documentation/Books/ZopeBook/2_6Edition/SearchingZCatalog.st
x

Andrew

-- 
Logical Progression Ltd, 20 Forth Street, Edinburgh EH1 3LH, UK
Tel: +44 (0)131 550 3733 Web: http://www.logicalprogression.net/




More information about the Zope mailing list