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: