better web2py.py thanks Niphlod

This commit is contained in:
mdipierro
2012-08-20 16:02:11 -05:00
parent 7898e4aac3
commit c7074d5e4d
3 changed files with 8 additions and 6 deletions
+1 -1
View File
@@ -51,7 +51,6 @@ class List(list):
return value
class Storage(object):
__class__ = dict
"""
A Storage object is like a dictionary except `obj.foo` can be used
in addition to `obj['foo']`, and setting obj.foo = None deletes item foo.
@@ -72,6 +71,7 @@ class Storage(object):
None
"""
__class__ = dict
def __init__(self, __d__=None, **values):
self.__dict__.update(__d__ or {},**values)