|
@@ -239,7 +239,22 @@ class UIConfigData():
|
|
return value, default, False
|
|
return value, default, False
|
|
return None, False, False
|
|
return None, False, False
|
|
|
|
|
|
|
|
+ def get_value_map_single(self, identifier, entry):
|
|
|
|
+ """Returns a single entry for a value_map, where the value is
|
|
|
|
+ not a part of a bigger map"""
|
|
|
|
+ result_part = {}
|
|
|
|
+ result_part['name'] = entry['item_name']
|
|
|
|
+ result_part['type'] = entry['item_type']
|
|
|
|
+ value, default, modified = self.get_value(identifier)
|
|
|
|
+
|
|
|
|
+ result_part['value'] = value
|
|
|
|
+ result_part['default'] = default
|
|
|
|
+ result_part['modified'] = modified
|
|
|
|
+ return result_part
|
|
|
|
+
|
|
def get_value_map(self, identifier, entry):
|
|
def get_value_map(self, identifier, entry):
|
|
|
|
+ """Returns a single entry for a value_map, where the value is
|
|
|
|
+ a part of a bigger map"""
|
|
result_part = {}
|
|
result_part = {}
|
|
result_part['name'] = entry['item_name']
|
|
result_part['name'] = entry['item_name']
|
|
result_part['type'] = entry['item_type']
|
|
result_part['type'] = entry['item_type']
|
|
@@ -264,7 +279,7 @@ class UIConfigData():
|
|
if type(spec) == dict:
|
|
if type(spec) == dict:
|
|
|
|
|
|
if 'item_name' in spec:
|
|
if 'item_name' in spec:
|
|
- result_part = self.get_value_map(identifier, spec)
|
|
+ result_part = self.get_value_map_single(identifier, spec)
|
|
if result_part['type'] == "list":
|
|
if result_part['type'] == "list":
|
|
values = self.get_value(identifier)[0]
|
|
values = self.get_value(identifier)[0]
|
|
if values:
|
|
if values:
|