' # main table
html = html + '' # name+attributes table
- if (not c.show_name) or c.type != 'bundle':
+ if c.show_name:
html = html + '| {name} | '.format(colspan=len(a), name=c.name)
html = html + '' # attribute row
for attrib in a:
@@ -185,13 +135,13 @@ class Harness:
for i, x in enumerate(c.colors,1):
p = []
p.append(''.format(i))
- p.append(translate_color(x, self.color_mode))
+ p.append(wv_colors.translate_color(x, self.color_mode))
p.append(''.format(i))
html = html + ' '
for bla in p:
html = html + '| {} | '.format(bla)
html = html + ' '
- html = html + ' | '.format(colspan=len(p), bgcolor=translate_color(x, 'hex'), port='w{}'.format(i))
+ html = html + ' | '.format(colspan=len(p), bgcolor=wv_colors.translate_color(x, 'hex'), port='w{}'.format(i))
if c.shield:
p = ['', 'Shield', '']
@@ -200,64 +150,174 @@ class Harness:
for bla in p:
html = html + '{} | '.format(bla)
html = html + ''
- html = html + ' | '.format(colspan=len(p), bgcolor=translate_color(x, 'hex'), port='ws')
+ html = html + ' | '.format(colspan=len(p), bgcolor=wv_colors.translate_color(x, 'hex'), port='ws')
html = html + '| | ' # spacer at the end
html = html + ' ' # conductor table
- html = html + ' |