[web2py] Re: Updating auth.user extra_fields?

2013-11-19 Thread Eduardo Cruz
db(db.auth_user.id == auth.user.id).update(pagesize=100) it will update the database. El martes, 19 de noviembre de 2013 03:38:40 UTC-4, User escribió: I want to store user page size preference for when there is a list view of items that needs pagination and have that preference persist

[web2py] Re: Updating auth.user extra_fields?

2013-11-19 Thread User
So am I correct in that in order to update the page size I would need to both update the database and also update the variable in the current session? That is, the following is necessary: db(db.auth_user.id == auth.user.id).update(pagesize=100) auth.user.pagesize = 100 On Tuesday, November

[web2py] Re: Updating auth.user extra_fields?

2013-11-19 Thread User
This topic seems to discuss a similar issue: https://groups.google.com/d/topic/web2py/_DDXJL7fwLk/discussion The answer seems to be yes you have to manually update the version in session as well as the database if you want the information to be synchronized. Using an after_update hook was