change out put format for the pylint from text=> html

apply wiki css to make looks like wiki widget

bzr revid: mga@tinyerp.com-20090109054723-w89wtrdj193maq65
This commit is contained in:
mga (Tiny/Axelor)
2009-01-09 11:17:23 +05:30
parent a527763cd8
commit 3254d46e1d
2 changed files with 8 additions and 4 deletions
@@ -52,7 +52,11 @@ class quality_test(base_module_quality.abstract_quality_check):
n = 0
score = 0.0
dict = {}
self.result_details += '<nowiki>'
self.result_details += '''<html>
<head>
<link rel="stylesheet" type="text/css" href="/tg_widgets/openerp/css/wiki.css" media="all">
</head>
<body>'''
for file in list_files:
if file.split('.')[-1] == 'py' and not file.endswith('__init__.py') and not file.endswith('__terp__.py'):
file_path = os.path.join(module_path, file)
@@ -76,8 +80,8 @@ class quality_test(base_module_quality.abstract_quality_check):
score += 0
#self.result += file + ": "+_("Unable to parse the result. Check the details.")+"\n"
dict[file] = [file, _("Unable to parse the result. Check the details.")]
self.result_details += res
self.result_details += '</nowiki>'
self.result_details += res.replace('''<div''', '''<div class="wikiwidget readonlyfield"''')
self.result_details += '</body></html>'
average_score = n and score / n or score
self.score = (max(average_score,0)) / 10
self.result = self.get_result(dict)
@@ -62,7 +62,7 @@ disable-msg=C0103,F0401,E0611,R0903,W0232,W0102,E1002,R0913,R0904
# set the output format. Available formats are text, parseable, colorized and
# html
output-format=text
output-format=html
# Include message's id in output
include-ids=yes