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
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
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
3 matches
Mail list logo