Re: [web2py] Re: crud.search() fails on GAE with plugin_wiki

2010-07-28 Thread Bruno Rocha
Thanks Massimo, however, using set() I assure distict elements, using your LAMBDA solution, entries may duplicate. SEARCH to plugin_wiki is running here : http://web2pybrasil.appspot.com/cursoweb2py/ I need to search in different fields using a %LIKE% operator, my code now needs some improvement t

[web2py] Re: crud.search() fails on GAE with plugin_wiki

2010-07-27 Thread mdipierro
contains and startwith do not work on GAE because they do not support it. I am looking into possible workaround. Instead of this: pages = db(db.plugin_wiki_page.id>0).select(db.plugin_wiki_page.slug) for page in pages: if page.slug.find(string) > -1:

[web2py] Re: crud.search() fails on GAE with plugin_wiki

2010-07-27 Thread Bruno Rocha
I Solved my problem in a hard way with a custom widget, the only way I found to perform %LIKE% on GAE @staticmethod def searchPages(string=None,nfmessage='Nothing found with %s'): """ string: string to be found """ found = set() if string: #s

[web2py] Re: crud.search() fails on GAE with plugin_wiki

2010-07-27 Thread Bruno Rocha
Also fails on JQGRID Search, I Know GAE has some limitations performing LIKE, so I think if this have no solution, may be disabled when running in GAE. 2010/7/28 Bruno Rocha > Hi, > > trying to use the search widget on GAE i got an error, > > `` > name: search > table: plugin_wiki_page > ``:widg