[Zope] Re: Token 'ATOM' required, 'and' found

Jonathan dev101 at magma.ca
Mon Jul 25 07:10:00 EDT 2005


----- Original Message ----- 
From: "Peter Bengtsson" <peterbe at gmail.com>
To: "Chris Withers" <chris at simplistix.co.uk>
Cc: <zope at zope.org>
Sent: Monday, July 25, 2005 7:06 AM
Subject: [Zope] Re: Token 'ATOM' required, 'and' found


> Ok. Sounds like a plan. 
> What I need to do if it happens is to escape all the operator words
> like "and" "or" "not".
> Any idea how I can do that?

Not a zope solution (or issue), but how about using regex in python code?

Jonathan


> 
> On 7/25/05, Chris Withers <chris at simplistix.co.uk> wrote:
>> Peter Bengtsson wrote:
>> > But, is there a more robust solution to this? 
>> 
>> The "correct" thing to do here is to write your own query parser, but 
>> that's a lot of hard work.
>> 
>> I just catch the two exceptions that the QueryParser can throw and 
>> return an empty result set.
>> 
>> cheers,
>> 
>> Chris
>> 
>> -- 
>> Simplistix - Content Management, Zope & Python Consulting
>>             - http://www.simplistix.co.uk
>> 
>> 
> 
> 
> -- 
> Peter Bengtsson, 
> work www.fry-it.com
> home www.peterbe.com
> hobby www.issuetrackerproduct.com
> _______________________________________________
> Zope maillist  -  Zope at 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 )
> 
>



More information about the Zope mailing list