[web2py] trouble with session and default controller

2014-06-06 Thread weheh
I'm using an ajax call to default.py controller. The default.py sets a session variable. Paraphrased, it looks like this: # model if not session.myvars: session.myvars = dict( somevar=dict(), othervar=dict(), ... ) # view ... ajax("{{= URL('default'

[web2py] trouble with session and default controller

2014-06-06 Thread weheh
I'm using an ajax call to default.py controller. The default.py sets a session variable. Paraphrased, it looks like this: # model if not session.myvars: session.myvars = dict( somevar=dict(), othervar=dict(), ... ) # view ... ajax("{{= URL('default'