Still don't work. It returns 405 method not found. On Mar 13, 2018 7:00 PM, "Leonel Câmara" <[email protected]> wrote:
> You're missing a return locals() > > > @request.restful() > def updateAgenda(): > > def PUT(id): > data = json(request.body.read()) > ret = db(db.agenda.id > <http://www.google.com/url?q=http%3A%2F%2Fdb.agenda.id&sa=D&sntz=1&usg=AFQjCNGYs_gkij2jYCJtZjoeiYOZrlqBEw> > == id]).update(**data) > return ret > return locals() # the restful decorator uses this dictionary to get the > correct function for each method > > -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > - http://github.com/web2py/web2py (Source code) > - https://code.google.com/p/web2py/issues/list (Report Issues) > --- > You received this message because you are subscribed to the Google Groups > "web2py-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

