Hi,

Just to inform that I have added a small gtk example that allow to see
it in action: http://codereview.appspot.com/2099045.

To get the files, dowload the raw patch set, then use the patch command
like: "patch -p0 < issue_xx.diff" this will create a directory "b" with
the sources in it. To see the demo just launch gtk_demo.py.

This demo just handles simple domains (not parenthesis no AND / OR).

Cheers,

Bertrand



Le Thu, 09 Sep 2010 22:37:56 +0200,
Chenal Bertrand <[email protected]> a écrit :

>   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
> 

-- 
[email protected] mailing list

Reply via email to