aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/presentation/specification_parser.py
diff options
context:
space:
mode:
Diffstat (limited to 'resources/tools/presentation/specification_parser.py')
-rw-r--r--resources/tools/presentation/specification_parser.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/resources/tools/presentation/specification_parser.py b/resources/tools/presentation/specification_parser.py
index 53649609dd..9852d905ba 100644
--- a/resources/tools/presentation/specification_parser.py
+++ b/resources/tools/presentation/specification_parser.py
@@ -637,6 +637,11 @@ class Specification(object):
if isinstance(data_set, str):
element[item]["data"] = \
self.configuration["data-sets"][data_set]
+ data_set = element[item].get("data-replacement",
+ None)
+ if isinstance(data_set, str):
+ element[item]["data-replacement"] = \
+ self.configuration["data-sets"][data_set]
if element.get("history", None):
for i in range(len(element["history"])):
@@ -644,6 +649,11 @@ class Specification(object):
if isinstance(data_set, str):
element["history"][i]["data"] = \
self.configuration["data-sets"][data_set]
+ data_set = element["history"][i].get(
+ "data-replacement", None)
+ if isinstance(data_set, str):
+ element["history"][i]["data-replacement"] = \
+ self.configuration["data-sets"][data_set]
except KeyError:
raise PresentationError("Wrong data set used in {0}.".