[Zope] Re: Question about AdvancedQuery
Mikel Larreategi
mlarreategi at codesyntax.com
Thu Jul 26 04:21:10 EDT 2007
julian(e)k dio:
> Hi,
>
> I want use a query like :
> query['getPresta_chambres'] = { 'query': ["15"], 'range': 'min' }
>
> But with AdvancedQuery I don't see how make it :
> ---------------------------------------------------------------------
> query = And(Eq('portal_type', 'Meubles'))
> query = query & Eq('review_state', 'published')
>
> # This query don't run :
> query = query & Eq('getPresta_chambres', { 'query': ["15"],'range':
> 'min' })
> ---------------------------------------------------------------------
>
> Could you help me :p ?
You can use Le and Ge:
query = query & Le('getPresta_chambres', 15)
http://www.dieter.handshake.de/pyprojects/zope/AdvancedQuery.html
Mikel
--
Mikel Larreategi
mlarreategi at codesyntax.com
CodeSyntax
Azitaingo Industrialdea 3 K
E-20600 Eibar
Tel: (+34) 943 82 17 80
More information about the Zope
mailing list