Good Catch both of you! :-) update_record works!
Thanks! On Wed, Nov 16, 2011 at 12:12 PM, Anthony <[email protected]> wrote: > 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 > -- Linux User #387870 .........____ .... _/_õ|__| ..º[ .-.___.-._| . . . . .__( o)__( o).:_______

