I make heavy use of Storage in my apps because dot notation is so much 
easier and faster. It is completely backwards compatible with Python's 
dictionary. I usually end up putting this at the top of all my controllers 
and modules:

from gluon.storage import Storage

Then instead of using a dictionary:

d = {'a': 1}
d['b'] = 2
return d['a']

Use Storage:

d = Storage({'a': 1})
d.b = 2
return d.a

Reply via email to