Code Review
/
csit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Report: Add Comparison tables
[csit.git]
/
resources
/
tools
/
presentation
/
specification_parser.py
diff --git
a/resources/tools/presentation/specification_parser.py
b/resources/tools/presentation/specification_parser.py
index
a94d09f
..
00614cf
100644
(file)
--- a/
resources/tools/presentation/specification_parser.py
+++ b/
resources/tools/presentation/specification_parser.py
@@
-666,9
+666,16
@@
class Specification:
table[u"columns"][i][u"data-replacement"] = \
self.data_sets[data_set]
table[u"columns"][i][u"data-replacement"] = \
self.data_sets[data_set]
+ if table.get(u"lines", None):
+ for i in range(len(table[u"lines"])):
+ data_set = table[u"lines"][i].get(u"data-set", None)
+ if isinstance(data_set, str):
+ table[u"lines"][i][u"data-set"] = \
+ self.data_sets[data_set]
+
except KeyError:
raise PresentationError(
except KeyError:
raise PresentationError(
- f"Wrong
data set
used in {table.get(u'title', u'')}."
+ f"Wrong
set '{data_set}'
used in {table.get(u'title', u'')}."
)
self._specification[u"tables"].append(table)
)
self._specification[u"tables"].append(table)