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
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:
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
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
4 matches
Mail list logo