[IMP] exception handling in _dispatch
authorXavier Morel <xmo@openerp.com>
Tue, 26 Nov 2013 11:05:19 +0000 (12:05 +0100)
committerXavier Morel <xmo@openerp.com>
Tue, 26 Nov 2013 11:05:19 +0000 (12:05 +0100)
commit1235955197de427a91c883c52de45e6900e21353
treed26feae9b9bb37d292827ca652a5ba2fa05eadfb
parent0a3371c3b2d03192df932b712c49a098c5c5d21e
[IMP] exception handling in _dispatch

* ensure users correctly get a 403 forbidden from a failed
  _authenticate

* as far as we can tell, NotFound is one of the few things
  _authenticate does *not* throw. Catch all exceptions anyway.

* replace default _handle_500, _handle_403 and _handle_404 by single
  generic handler since all they did was re-raise the exception anyway

bzr revid: xmo@openerp.com-20131126110519-0yjh01ubrulpzlmn
openerp/addons/base/ir/ir_http.py
openerp/osv/orm.py