[Zope] Re: Question about AdvancedQuery

2007-07-26 Thread Mikel Larreategi
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
[EMAIL PROTECTED]

CodeSyntax
Azitaingo Industrialdea 3 K
E-20600 Eibar
Tel: (+34) 943 82 17 80

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: Question about AdvancedQuery

2007-07-26 Thread julian

  You can use Le and Ge:


query = query  Le('getPresta_chambres', 15)



Thank you very much,

It's exactly the solution :p

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )