Question about AdvancedQuery
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 ? Julian
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@codesyntax.com CodeSyntax Azitaingo Industrialdea 3 K E-20600 Eibar Tel: (+34) 943 82 17 80
participants (2)
-
julian -
Mikel Larreategi