← Back to team overview

openerp-expert-framework team mailing list archive

Re: Errors handling

 

+1 => That's a great idea and a good news !!

Good luck and thanks for the investigating !

Regards,



Le 25 janv. 2010 à 09:24, Davide Corio a écrit :

> Il giorno dom, 24/01/2010 alle 18.38 -0200, Raphaël Valyi ha scritto:
>> Hello,
>> 
>> 
>> I also recommend issuing more user friendly messages, but only if that
>> could be done in a generic manner. I would be sad if the solution was
>> to dilute non-consitent/unmaintainable exception messages all over the
>> place in every possible case.
> 
> Hi Raphaël,
> 
> yes, i perfectly understand your point of view.
> We are here to improve and "clean" openobject, so every new features
> must be smartly coded.
> 
>> While trying to interpret the error, may be the stack and/or the
>> ir_model and/or ir_model_fields table could be used to help build a
>> user friendly message.
> 
> this is exactly what i have in mind
> 
>> But notice that, in Rails you would generate such model data integrity
>> controls with human messages at the model layer for that. It's much
>> like the field declaration in the objects will generate specific
>> validations at the model layer when trying CRUD operations, may be
>> it's the way to go (strangely I was dealing with that yesterday in
>> Rails).
> 
> Similar to what happens with other frameworks, so it should be the right
> approach.
> 
> But i'm not sure openobject already provides all of what we need to
> proceed that way.
> 
> i'll investigate 
> -- 
> Davide Corio
> email: davide.corio<at>domsense.com
> web: http://www.domsense.com
> 
> 
> _______________________________________________
> Mailing list: https://launchpad.net/~openerp-expert-framework
> Post to     : openerp-expert-framework@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~openerp-expert-framework
> More help   : https://help.launchpad.net/ListHelp

-- 

Joël Grand-Guillaume 
OpenERP Consultant
Business Solutions

Camptocamp SA
PSE A, CH-1015 Lausanne
 www.camptocamp.com 

Phone: +41 21 619 10 28
Office: +41 21 619 10 10
Fax: +41 21 619 10 00
Email: joel.grandguillaume@xxxxxxxxxxxxxx
http://www.camptocamp.com/fr/business-solutions/formations


Follow ups

References