OSV: Fix callable _sql_constraint messages
authorP. Christeas <p_christ@hol.gr>
Thu, 18 Nov 2010 18:46:43 +0000 (20:46 +0200)
committerP. Christeas <p_christ@hol.gr>
Thu, 18 Nov 2010 18:46:43 +0000 (20:46 +0200)
commit41c9098ca994a3712bcdd0e6dc61805ed946b02d
tree09cd335e12c5ce27761be5f142463fc710750099
parentd0dee320199662492c3779deef06c412238eec73
OSV: Fix callable _sql_constraint messages

This fixes the support for callable sql_constraint messages, which have
always been wrong. It respects the (cr, uid, ids, context) arguments and
will fallback to Postgres's error if it cannot call.

Note that sql constraints are not properly explained when base_module_record
or audittrail are installed.

bzr revid: p_christ@hol.gr-20101118184643-8tnmj83b09kuvf1j
bin/osv/orm.py
bin/osv/osv.py