[FIX] Certificate in non-digit format will not be accepted
lp bug: https://launchpad.net/bugs/392052 fixed bzr revid: jvo@tinyerp.com-20090708125428-vhbhb7or1oeidjjo
This commit is contained in:
@@ -480,7 +480,7 @@ class module(osv.osv):
|
||||
if not mod.description:
|
||||
logger.notifyChannel("init", netsvc.LOG_WARNING, 'module %s: description is empty !' % (mod.name,))
|
||||
|
||||
if not mod.certificateor or not mod.certificate.isdigit():
|
||||
if not mod.certificate or not mod.certificate.isdigit():
|
||||
logger.notifyChannel('init', netsvc.LOG_WARNING, 'module %s: no quality certificate' % (mod.name,))
|
||||
else:
|
||||
val = long(mod.certificate[2:]) % 97 == 29
|
||||
|
||||
Reference in New Issue
Block a user