getitem for multis
This commit is contained in:
parent
e3b379b974
commit
7800e38585
|
@ -42,7 +42,9 @@ class Multi(list):
|
||||||
value = super(Multi, self).__getitem__(key)
|
value = super(Multi, self).__getitem__(key)
|
||||||
if value is None:
|
if value is None:
|
||||||
return self.child.default_multi
|
return self.child.default_multi
|
||||||
|
else:
|
||||||
|
return value
|
||||||
|
|
||||||
def __setitem__(self, key, value):
|
def __setitem__(self, key, value):
|
||||||
if value is None:
|
if value is None:
|
||||||
owner = 'default'
|
owner = 'default'
|
||||||
|
|
Loading…
Reference in New Issue