X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Ftools%2Fpresentation%2Fspecification_parser.py;h=9852d905ba71c9083fae17828b1e751a2bd6fe6a;hp=53649609dd81cd0a2b0b646d392218582e32d654;hb=ac2c84d9561e2344057dc5d4173b0c7718015c4b;hpb=664993a34b8944015abad66576b11b5c056eeb83 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}.".