mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
added conversion for list of lists
This commit is contained in:
parent
47a907337c
commit
e3d4118ba4
1 changed files with 7 additions and 0 deletions
|
|
@ -94,6 +94,13 @@ class DictMutableKeysEntity(EndpointEntity):
|
|||
for key in prev_keys:
|
||||
self.pop(key)
|
||||
|
||||
def _convert_to_valid_type(self, value):
|
||||
try:
|
||||
return collections.OrderedDict(value)
|
||||
except Exception:
|
||||
pass
|
||||
return super(DictMutableKeysEntity, self)._convert_to_valid_type(value)
|
||||
|
||||
def set_key_value(self, key, value):
|
||||
# TODO Check for value type if is Settings entity?
|
||||
child_obj = self.children_by_key.get(key)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue