bugfix
This commit is contained in:
parent
9f17573486
commit
aff73f193a
@ -31,6 +31,13 @@ class DictObject(dict):
|
|||||||
except KeyError:
|
except KeyError:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
def has(self, key):
|
||||||
|
try:
|
||||||
|
v = super().__getitem__(key)
|
||||||
|
return True
|
||||||
|
except KeyError:
|
||||||
|
return False
|
||||||
|
|
||||||
def get_data_by_keys(self, keys):
|
def get_data_by_keys(self, keys):
|
||||||
try:
|
try:
|
||||||
ks = keys.split('.', 1)
|
ks = keys.split('.', 1)
|
||||||
|
Loading…
Reference in New Issue
Block a user