better web2py.py thanks Niphlod
This commit is contained in:
1 parent
89fb924c3f
commit
d29724cdbb
3 files changed
+8
-6
No files matched your search
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user