diff options
| author | Fabien Pinckaers <fp@tinyerp.com> | 2009-09-28 16:26:44 +0200 |
|---|---|---|
| committer | Fabien Pinckaers <fp@tinyerp.com> | 2009-09-28 16:26:44 +0200 |
| commit | a4a456bffbecbdc3c3abde102620a3be005c2356 (patch) | |
| tree | 5bbcde59eb1ee5480261f8b26371c30557dd5313 /addons/base_module_quality/structure_test/structure_test.py | |
| parent | 570e8dbc4b762d97e7e00762a67e03737d4091bf (diff) | |
| parent | 059077b108328d694836a8d23b0f01b840bdbef7 (diff) | |
merge
bzr revid: fp@tinyerp.com-20090928142644-j16l08v5q3qzqaf3
Diffstat (limited to 'addons/base_module_quality/structure_test/structure_test.py')
| -rw-r--r-- | addons/base_module_quality/structure_test/structure_test.py | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/addons/base_module_quality/structure_test/structure_test.py b/addons/base_module_quality/structure_test/structure_test.py index e89c68cdefb..5c43d3a0e10 100644 --- a/addons/base_module_quality/structure_test/structure_test.py +++ b/addons/base_module_quality/structure_test/structure_test.py @@ -170,10 +170,26 @@ This test checks if the module satisfy tiny structure return score def get_result_details(self, dict_struct): - str_html = '''<html><head></head><body><table>''' - header = ('<tr><th>%s</th><th>%s</th></tr>', [_('File Name'), _('Feedback about structure of module')]) + str_html = '''<html><head> + <style> + .bstyle + { + border-width:2px; + border-style:dashed; + border-color: gray; + } + .btstyle + { + border-width:2px; + border-style:solid; + border-color: gray; + } + } + </style></head><body><table class="bstyle">''' + header = ('<tr><th class="btstyle">%s</th><th class="btstyle">%s</th></tr>', [_('File Name'), _('Feedback about structure of module')]) if not self.error: res = str_html + self.format_html_table(header, data_list=dict_struct) + '</table></body></html>' + res = res.replace('''<td''', '''<td class="btstyle" ''') return res return "" |
