diff options
| author | pso (tiny) <pso@tinyerp.com> | 2008-12-24 12:50:46 +0530 |
|---|---|---|
| committer | pso (tiny) <pso@tinyerp.com> | 2008-12-24 12:50:46 +0530 |
| commit | eaa876bb450b8c61d4f5eadc243b413914a61b43 (patch) | |
| tree | 30ec253f3d2d8db5ff6afef2dceae86ddddb7012 /addons/base_module_quality/base_module_quality.py | |
| parent | 50839dcb9338d184c8a0c34e1c23e13035790523 (diff) | |
| parent | 22e08146f917b7408d4feac17be10b7f30bb038b (diff) | |
merge
bzr revid: solanki.priyesh@gmail.com-20081222065441-0wrzqih2ylonvcrr
bzr revid: pso@tinyerp.com-20081224060924-rgyj1jvh5cihcbxl
bzr revid: pso@tinyerp.com-20081224072046-4ooxerfj3rmd3sn6
Diffstat (limited to 'addons/base_module_quality/base_module_quality.py')
| -rw-r--r-- | addons/base_module_quality/base_module_quality.py | 31 |
1 files changed, 24 insertions, 7 deletions
diff --git a/addons/base_module_quality/base_module_quality.py b/addons/base_module_quality/base_module_quality.py index 13b9de20ce4..195e345e8ef 100644 --- a/addons/base_module_quality/base_module_quality.py +++ b/addons/base_module_quality/base_module_quality.py @@ -20,21 +20,38 @@ # ############################################################################## -import netsvc -from osv import fields, osv class abstract_quality_check(object): ''' This Class provide... ''' - _score = 0.0 - _result = "" - _result_details = "" + #This float have to store the rating of the module. + #Used to compute the final score (average of all scores). + score = 0.0 - def __init__(self, module_path=""): + #This char have to store the result. + #Used to display the result of the test. + result = "" + + #This char have to store the result with more details. + #Used to provide more details if necessary. + result_details = "" + + #This bool defines if the test can be run only if the module is installed. + #True => the module have to be installed. + #False => the module can be uninstalled. + bool_installed_only = True + + def __init__(self): + ''' + this method should initialize the var + ''' + raise 'Not Implemented' + + def run_test(self, cr, uid, module_path=""): ''' - this method should do the test and fill the _score, _result and _result_details var + this method should do the test and fill the score, result and result_details var ''' raise 'Not Implemented' |
