> > Do you know why there is a difference if the dict is accessed inside or > outside a controller function? > I still don't understand why it behaves correctly when accessed inside a controller function. I tried setting a new value in a controller function (e.g. auth.user.test = '1') and the session is written as expected (session._unchanged returns false). If I access a dict in a controller function (e.g. auth.user_groups) the session is not updated (session._unchanged returns false). How is this possible?
When checking the pickled value and hash after accessing auth.user_groups in the controller it is different from before. But when the hash is compared in session._unchanged the session hash is a different one than the hash in the controller. The hash is the same as response.session_hash which is the "correct" behavior. maybe the problem is solvable after all? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- 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/d/optout.