aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/presentation/specification_parser.py
diff options
context:
space:
mode:
authorTibor Frank <tifrank@cisco.com>2019-09-06 13:54:11 +0200
committerTibor Frank <tifrank@cisco.com>2019-09-10 12:35:14 +0200
commit4dc7d6cc7b695c21ef1e37fa6b754958fc50e484 (patch)
tree508ef74755f06d098932532051d0bfe5daaae760 /resources/tools/presentation/specification_parser.py
parentc4528bcd137c0813d34b1b248bc92670736e78e6 (diff)
PAL: Add replacing of data in tables
+ vhost data Change-Id: I86fc97ba5c3b0feffec2dfb0ac11c5d3c9d53a81 Signed-off-by: Tibor Frank <tifrank@cisco.com>
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}.".