> Is session[id] a Storage object? 


Yes. 

If so, if you do session[id].r and r does not exist, the Storage object 
> will return None.


r does exist, otherwise this condition would fail: elif 
r['NodeNav']['frontend']:

If you try to do session[id].r['Nav'], it will attempt to subscript None 
> with 'Nav', which won't work.


This works:

f=r['Nav']['function']
if f:
    session[id].f=True

Kind regards,

Annet

-- 



Reply via email to