summaryrefslogtreecommitdiff
path: root/addons/base_module_quality
diff options
context:
space:
mode:
authormra (Open ERP) <mra@tinyerp.com>2009-01-13 17:10:47 +0530
committermra (Open ERP) <mra@tinyerp.com>2009-01-13 17:10:47 +0530
commit8f6cc4e3653d7f4b6291e0547a0251e5fd2a144b (patch)
treebf479ccfac82d38b4845e2cd0bff9e57b0dccc6e /addons/base_module_quality
parent2d2e26a4e92e32b2f5256a5efd879467ce6b07e1 (diff)
module quality bug fix
bzr revid: mra@tinyerp.com-20090113114047-u7qpf3041jjl02ha
Diffstat (limited to 'addons/base_module_quality')
-rw-r--r--addons/base_module_quality/pylint_test/pylint_test.py18
1 files changed, 10 insertions, 8 deletions
diff --git a/addons/base_module_quality/pylint_test/pylint_test.py b/addons/base_module_quality/pylint_test/pylint_test.py
index 04eef3fa7e1..f4cbe89e3a6 100644
--- a/addons/base_module_quality/pylint_test/pylint_test.py
+++ b/addons/base_module_quality/pylint_test/pylint_test.py
@@ -66,16 +66,18 @@ class quality_test(base_module_quality.abstract_quality_check):
self.result += _("Error. Is pylint correctly installed?")+"\n"
break
n += 1
- leftchar = -1
- while res[leftchar:leftchar+1] != ' ' and leftchar-1 <= 0:
- leftchar -= 1
- rightchar = -10
- while res[rightchar:rightchar+1] != '/' and rightchar+1 <= 0:
- rightchar += 1
+# leftchar = -1
+# while res[leftchar:leftchar+1] != ' ' and leftchar-1 <= 0:
+# leftchar -= 1
+# rightchar = -10
+# while res[rightchar:rightchar+1] != '/' and rightchar+1 <= 0:
+# rightchar += 1
try:
- score += float(res[leftchar+1:rightchar])
+# score += float(res[leftchar+1:rightchar])
+ scr = res.split("Your code has been rated at")[1].split("</div>")[0].split("/")[0]
+ score += float(scr)
#self.result += file + ": " + res[leftchar+1:rightchar] + "/10\n"
- dict[file] = [file, res[leftchar+1:rightchar]]
+ dict[file] = [file, scr]
except:
score += 0
#self.result += file + ": "+_("Unable to parse the result. Check the details.")+"\n"