I've checked autocomplete widget can not work in gae, as it uses like in its
callback.
Checking this group archives, I've found this
thread: https://groups.google.com/d/topic/web2py/HdnWTp7h3Do/discussion
but even if it looks like it would work, finally it was not implemented.
So, does anybody k
I dont know about autocomplete widget, but, for 'like' in GAE you can use
Row.find()
term = "something"
pages = db(db.table.id>0).select().find(lambda row :
row.field.startswith(term) or row.field.endswith(term) or row.field == term
or term in row.field)
On Sun, Jul 3, 2011 at 1
startswith and endswith are not supported in GAE either
2011/7/3 Bruno Rocha :
> I dont know about autocomplete widget, but, for 'like' in GAE you can use
> Row.find()
>
> term = "something"
> pages = db(db.table.id>0).select().find(lambda row :
> row.field.startswith(term) or row.
For me it is supported..
take a look, this is a plugin_wiki based "outdated" website
http://web2pybrasil.appspot.com (the search box called 'Busca')
The code behind:
@staticmethod
def searchPages(string=None,nfmessage='Nothing found with %s'):
string = request.vars.search
4 matches
Mail list logo