[web2py] Re: appadmin/ccache and dict in cache.disk

2016-10-07 Thread Niphlod
definitely a bug. a PR is on the way. On Friday, October 7, 2016 at 8:49:45 PM UTC+2, Niphlod wrote: > > ok, it's valid syntax. will investigate... > > On Friday, October 7, 2016 at 7:04:51 PM UTC+2, MDSIII wrote: >> >> cval = dict(request.vars) >> cval.update(request.vars) >> cache.ram('agent',

[web2py] Re: appadmin/ccache and dict in cache.disk

2016-10-07 Thread Niphlod
ok, it's valid syntax. will investigate... On Friday, October 7, 2016 at 7:04:51 PM UTC+2, MDSIII wrote: > > cval = dict(request.vars) > cval.update(request.vars) > cache.ram('agent', > lambda: cache.disk('agent', lambda :cval, time_expire = 0), > time_expire = 0) > > I realize

[web2py] Re: appadmin/ccache and dict in cache.disk

2016-10-07 Thread MDSIII
cval = dict(request.vars) cval.update(request.vars) cache.ram('agent', lambda: cache.disk('agent', lambda :cval, time_expire = 0), time_expire = 0) I realize this is sort of rediculous code but it shows all assignment operations to the object "cval" that happen before it is

[web2py] Re: appadmin/ccache and dict in cache.disk

2016-10-07 Thread Niphlod
how do you store a dict in cache.disk ? On Friday, October 7, 2016 at 8:59:34 AM UTC+2, MDSIII wrote: > > When I store a dict in cache.disk and then request > /appadmin/ccache I'm getting a key error: > > Traceback (most recent call last): > File "C:\repos\TCL\web2py\gluon\restricted.py", line