db.auth_user[auth.user.id] is a Row object, so the .update() method is just updating that object. If you want to update the db, use the .update_record() method (see http://web2py.com/books/default/chapter/29/06#update_record), or do:
db.auth_user[auth.user_id] = dict(bla=bla) or db(db.auth_user.id == auth.user_id).update(bla=blah) Anthony On Sunday, February 3, 2013 10:12:42 PM UTC-5, encompass wrote: > > When I change some data in db.auth_user[auth.user.id].update(bla=bla) > I don't get the changes in auth.user.bla. > Is this the expected behavior? Kind of a bummer as I would have to quiry > the user quite often to make sure things are correct. In my application the > users data changes quite a bit. I am tracking there position on a map in > an online video game. > BR, > Jason > > -- --- 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 web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.