[web2py] Re: How to get JSON results?

2011-12-12 Thread Anthony
Does it work if you pass the request arg as an argument to the function: @service.json def search(keyword): query = db.search.title.contains(keyword, all=True) return db(query).select() On Monday, December 12, 2011 9:44:50 PM UTC-5, lyn2py wrote: I have followed the instructions from

[web2py] Re: How to get JSON results?

2011-12-12 Thread lyn2py
Yes it does. LOL. Sorry for the trouble! On Dec 13, 11:04 am, Anthony abasta...@gmail.com wrote: Does it work if you pass the request arg as an argument to the function: @service.json def search(keyword):     query = db.search.title.contains(keyword, all=True)     return db(query).select()