I am fresh man, I copy the code from chaper 7 ,
db.define_table('category',Field('name'))
db.define_table('product',Field('name'),Field('category'))
db.product.category.widget = SQLFORM.widgets.autocomplete(
request, db.category.name, limitby=(0,10), min_length=2)
I have fill the table cate
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
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.
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
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
5 matches
Mail list logo