Hi everybody, I've worked on it for 2 weeks and can't find the answer... I've got a form where you can select some parameters and search (with ZCatalog) for them in my ZClass instances. Everything was perfect until I tryed to use ZCatalog Query to perform "or" search. <dtml-call "REQUEST.set('results', Catalog.query('type == ``Support de vente`` or physique == ``Book``',))"> works but this is not what I wanted... a.. <dtml-call "REQUEST.set('results', Catalog.query('type == typ or physique == physiqu', REQUEST))"> b.. <dtml-call "REQUEST.set('results', Catalog.query('type == typ or physique == physiqu'))"> Error Type: NameError Error Value: type a.. <dtml-call "REQUEST.set('results', Catalog.query('type == REQUEST.form[``typ``]', REQUEST))"> error REQUEST b.. <dtml-call "REQUEST.set('results', Catalog.query('type == REQUEST.form[``typ``]'))"> error getitem type I've even try with a python script : ret=context.Catalog.query('physique == ``Book`` or type == typ') return ret ERROR getitem (typ) How can I do ? Please help me... Benoit.
participants (1)
-
Benoit Dominiak