diff options
| author | Harry (Open ERP) <hmo@tinyerp.com> | 2009-09-07 14:06:32 +0530 |
|---|---|---|
| committer | Harry (Open ERP) <hmo@tinyerp.com> | 2009-09-07 14:06:32 +0530 |
| commit | b3d0c54ef7ccbde4b0501b3a5ef3e8ddec08567a (patch) | |
| tree | af8b58c08d8981e499ece150ce160fa1579f3876 /bin/addons/quality_integration_server | |
| parent | a5488afe63cb97ab590286d4e39851567356056d (diff) | |
[IMP]quality_integration_server : quality html log
bzr revid: hmo@tinyerp.com-20090907083632-z6pte2jqhrayjj23
Diffstat (limited to 'bin/addons/quality_integration_server')
| -rwxr-xr-x | bin/addons/quality_integration_server/base_quality_interrogation.py | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/bin/addons/quality_integration_server/base_quality_interrogation.py b/bin/addons/quality_integration_server/base_quality_interrogation.py index 620edd7dade..48c2ef29278 100755 --- a/bin/addons/quality_integration_server/base_quality_interrogation.py +++ b/bin/addons/quality_integration_server/base_quality_interrogation.py @@ -117,17 +117,16 @@ def check_quality(uri, user, pwd, dbname, modules): html = '''<html><html><html><html><body><a name="TOP"></a>''' html +="<h1> Module : %s </h1>"%(quality_result['name']) html += "<h2> Final score : %s</h2>"%(quality_result['final_score']) - html += "<oi>" - for x,y,detail in quality_result['check_detail_ids']: - if detail.get('detail') != '': - msg = detail.get('message') - test = detail.get('name') - score = round(float(detail.get('score',0)),2) - html += "<li><a href=\"#%s\">%s (%.2f)</a></li>"%(test,test,score) - detail_html +="<a name=\"%s\"><h3>%s (Score : %s)</h3>%s</a>"%(test,test,score,detail.get('detail')) - detail_html +='''<a href="#TOP">Go to Top</a>''' - test_detail[test] = (score,msg,detail.get('detail','')) - html += "</oi>%s</body></html></html></html></html></html>"%(detail_html) + html += "<div id='tabs'>" + html += "<ul>" + for x,y,detail in quality_result['check_detail_ids']: + test = detail.get('name') + score = round(float(detail.get('score',0)),2) + html += "<li><a href=\"#%s\">%s</a></li>"%(test.replace(' ','-'),test) + detail_html +="<div id=\"%s\"><h3>%s (Score : %s)</h3>%s</div>"%(test.replace(' ','-'),test,score,detail.get('detail')) + test_detail[test] = (score,detail.get('detail','')) + html += "</ul>%s</body></html></html></html></html></html>"%(detail_html) + html += "</div>" final[quality_result['name']] = (quality_result['final_score'],html,test_detail) fp = open('quality_log.pck','wb') @@ -138,7 +137,7 @@ def check_quality(uri, user, pwd, dbname, modules): else: print 'Login Failed...' clean() - sys.exit(1) + sys.exit(1) |
