ORM : debug : error message on python constraints are now displayed correctly
bzr revid: bch-5788b57099e7d45fa3d7b5758d24d4d2cf17b2a7
This commit is contained in:
parent
4e47509212
commit
23b65836f3
|
@ -85,7 +85,8 @@ class osv_pool(netsvc.Service):
|
|||
res = getattr(obj,method)(cr, uid, *args, **kw)
|
||||
return res
|
||||
except orm.except_orm, inst:
|
||||
self.abortResponse(1, inst.value[0], inst.name, inst.value[1])
|
||||
#self.abortResponse(1, inst.value[0], inst.name, inst.value[1])
|
||||
self.abortResponse(1, inst.value[0], 'warning', inst.value[1])
|
||||
except except_osv, inst:
|
||||
self.abortResponse(1, inst.name, inst.exc_type, inst.value)
|
||||
except psycopg.IntegrityError, inst:
|
||||
|
|
Loading…
Reference in New Issue