On Wednesday, November 16, 2011 8:57:10 AM UTC-5, Tito Garrido wrote:
>
> "sandbox/models/db_functions.py"
> def test(id):
>     r=db.mytable[id]
>     r.update(state=55)


In the above, 'r' is a Row object, so all you are doing is updating the Row 
object itself, not the original record in the db. To update the record, do:

    r.update_record(state=55)

See  http://web2py.com/book/default/chapter/06#update_record.

Anthony

Reply via email to