Re: [web2py] Easy to Understand SQLFORM.grid Custom Search

2014-07-25 Thread JoeCodeswell
Dear villas, You said: I suppose that my proposal to use shlex would really apply to Peter's > suggestion. > > I guess it might also be considered for use in the build_query function of > sqlhtml.py. > > Shlex seems like a great way of using quotes to contain search phrases. I > guess Goog

Re: [web2py] Easy to Understand SQLFORM.grid Custom Search

2014-07-21 Thread villas
Hi Joe, I suppose that my proposal to use shlex would really apply to Peter's suggestion. I guess it might also be considered for use in the build_query function of sqlhtml.py. Shlex seems like a great way of using quotes to contain search phrases. I guess Google would be using something s

Re: [web2py] Easy to Understand SQLFORM.grid Custom Search

2014-07-14 Thread JoeCodeswell
Dear villas, Thanks for the reply. Here is my understanding of what you want. You'd like to be able to search using a search syntax based on the shlex module. My technique uses the SQLFORM.grid's Standard Search Input ("#w2p_keywords") syntax for it's searches. I suggest you post an Enhancmen

Re: [web2py] Easy to Understand SQLFORM.grid Custom Search

2014-07-12 Thread villas
I would also like to add an optional 'extra' because it is nice to be able to search like this: search_text = '"David Cameron" uk' By quoting search 'phrases' as well as words, you can get a better result. After all, I would not want every David in the UK to be listed. I have found tha

Re: [web2py] Easy to Understand SQLFORM.grid Custom Search

2014-07-11 Thread Vinicius Assef
Nice. :-) On Fri, Jul 11, 2014 at 12:33 PM, JoeCodeswell wrote: > Dear viniciusban, > > Thanks for the comment. > > You also said, "How about updating the web2pyslices version, too? ;-) ". > > DONE! :) > > Thanks again, viniciusban. > Love and peace, > Joe > > On Thursday, July 10, 2014 12:10:27

Re: [web2py] Easy to Understand SQLFORM.grid Custom Search

2014-07-11 Thread JoeCodeswell
Dear peter, Thanks for the reply. I have used your post in the past. Reading it and reading the gluon code actually helped me get a grid Custom Search WITH a search_widget specified in the

Re: [web2py] Easy to Understand SQLFORM.grid Custom Search

2014-07-11 Thread JoeCodeswell
Dear viniciusban, *Thanks for the comment. You also said, "How about updating the web2pyslices version, too? ;-) ".DONE! :)*Thanks again, viniciusban. Love and peace, Joe On Thursday, July 10, 2014 12:10:27 PM UTC-7, viniciusban wrote: > > Really good. > > How about updating the web2pys

Re: [web2py] Easy to Understand SQLFORM.grid Custom Search

2014-07-10 Thread peter
Thanks for this Joe, and it is an interesting approach. However I find the approach I used https://groups.google.com/forum/#!searchin/web2py/sqlform.grid$20search/web2py/9_1ECdKHKUo/8OISg7o8OVIJ Somewhat easier to understand. Your approach is more novel however. Peter -- Resources: - http://

Re: [web2py] Easy to Understand SQLFORM.grid Custom Search

2014-07-10 Thread Vinicius Assef
Really good. How about updating the web2pyslices version, too? ;-) On Thu, Jul 10, 2014 at 1:09 PM, JoeCodeswell wrote: > Dear web2py-users, > > I have written a recipe to customize the SQLFORM.grid search WITHOUT the > need to specify a custom search_widget and so needing to read & understand >

[web2py] Easy to Understand SQLFORM.grid Custom Search

2014-07-10 Thread JoeCodeswell
Dear web2py-users, I have written a recipe to customize the SQLFORM.grid search WITHOUT the need to specify a custom search_widget and so needing to read & understand the clever web2py implementation source code. The maintained link to the recipe is here on joecodeswell.wordpress.com