Hi all, I have started to work on this topic but I'm stuck. First what's working : I have uploaded two files on codereview[1]:
- completion.py (needs python 2.6): is able to handle search strings like "first name:john" or "description:test status:draft" and propose auto-completion, I.E: for "first na" it will suggest "First Name:". But it doesn't understand operators parenthesis, etc.
- parse.py (use pyparsing): is able to handle parenthesis, and, or, and quotes but it does not work when a field contains two words. IE "State:draft and Amount:100" will work, but "first name:John" not. Also 'state:draft and "first name:John" ' is ok.
So the goal is to makes those two small codes works together. IMO the biggest challenge is to define a grammar in pyparsing that will parse something like "word AND more than one word OR etc" instead of only single words between operators. Does someone know if pyparsing is able to do this ?
Cheers, Bertrand [1] http://codereview.appspot.com/2099045 -- Bertrand Chenal B2CK SPRL Rue de Rotterdam, 4 4000 Liège Belgium Tel: +32 474 207 906 Email: [email protected] Website: http://www.b2ck.com/ -- [email protected] mailing list
