← Back to team overview

openerp-expert-framework team mailing list archive

Re: soft coded constraints

 

On Wednesday 28 April 2010, Ferdinand Gassauer wrote:
> https://blueprints.launchpad.net/openobject-server/+spec/constraints-extens
> ion
> 
> any comments on this ?
> 

That's interesting. I would only cross-check that this mechanism will not add 
any significant overhead.

On another note, it may just be that Postgres constraints can also be seen 
through a table/view, so that this module can access them. If done so (with 
some postgres magic), we could expose those fast constraints to the UI and 
thus configuration.

On a sidenote, shouldn't constraint failures result in a custom Exception, 
like 'osv_constraint_fail', so that we can handle them better at higher level?




Follow ups

References