提交 edd5263b 编写于 作者: L Lukáš Doktor

avocado.core.tree: Show multiplex in tree view

Multiplexed nodes affects heavily the tree structure and users should
see i in the tree view. This patch makes "multiplex" nodes visible.
Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
上级 24945ef1
...@@ -292,6 +292,8 @@ class TreeNode(object): ...@@ -292,6 +292,8 @@ class TreeNode(object):
node_name = ', '.join(map(str, [getattr(self, v) node_name = ', '.join(map(str, [getattr(self, v)
for v in attributes for v in attributes
if hasattr(self, v)])) if hasattr(self, v)]))
if self.multiplex:
node_name += "-<>"
length = max(2, (len(node_name) + 1) if not self.children or show_internal else 3) length = max(2, (len(node_name) + 1) if not self.children or show_internal else 3)
pad = ' ' * length pad = ' ' * length
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册