New certificate number: added a prefix to tell if the module comes from extraaddons or from addons

bzr revid: olt@tinyerp.com-20090203144804-b1rqhm05bpxla0y0
This commit is contained in:
Olivier Laurent
2009-02-03 15:48:04 +01:00
parent 1ea6c01aab
commit 8fb89ff578
+1 -1
View File
@@ -482,7 +482,7 @@ class module(osv.osv):
if not mod.certificate:
logger.notifyChannel('init', netsvc.LOG_WARNING, 'module %s: no quality certificate' % (mod.name,))
else:
val = long(mod.certificate) % 97 == 29
val = long(mod.certificate[2:]) % 97 == 29
if not val:
logger.notifyChannel('init', netsvc.LOG_CRITICAL, 'module %s: invalid quality certificate: %s' % (mod.name, mod.certificate))
raise osv.except_osv(_('Error'), _('Module %s: Invalid Quality Certificate') % (mod.name,))