The point is that it allows you to do

data.a.b.c=1

without having to do

data.a=Storage()
data.a.b=Storage()
data.a.b.c=1

In your test:
>>>data.test
<Storage {}>

but:
>>>data.test == None
True
>>>if not data.test: print 'null'
null


On Jun 2, 11:54 am, Ross Peoples <[email protected]> wrote:
> I just tried this in a web2py shell:
>
> >>> from gluon.storage import Storage
> >>> data = Storage()
> >>> data.foo = 'bar'
> >>> data.foo
> 'bar'
> >>>data.test
>
> <Storage {}>

Reply via email to