[Zope] Re: Token 'ATOM' required, 'and' found
Peter Bengtsson
peterbe at gmail.com
Mon Jul 25 07:20:28 EDT 2005
>
> > 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?
>
Finding the words I'm not worried about. What I don't know is _how_ to
escape the words.
If it was putting it in square brackets i _would_ do:
q = q.replace('not','[not]')
Don't get hung up on that. What I'm after is the technique I can use
upon the QueryParser for "ignoring" these operator words.
--
Peter Bengtsson,
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com
More information about the Zope
mailing list