diff options
| author | Xavier Morel <xmo@odoo.com> | 2015-01-29 16:15:36 +0100 |
|---|---|---|
| committer | Xavier Morel <xmo@odoo.com> | 2015-01-29 16:15:36 +0100 |
| commit | 88cc816670d4f864aecd574f45de215067a29626 (patch) | |
| tree | 1358ad0c6a065c78e5cbf048629f5c04d9822031 /addons/analytic_user_function/analytic_user_function_view.xml | |
| parent | 3d85eaa591f2935d4a7bef58286ba5cf7a4121ff (diff) | |
[IMP] http: don't warn when using HTTPException results
When returning an HTTPException e.g. by calling ``request.not_found()``
which returns a ``werkzeug.exceptions.NotFound()``, the http system
would log a warning as HTTPException is neither a subclass of Odoo's
Response nor a subclass of werkzeug's BaseResponse.
Move the string response case about (for flow clarity), and convert
HTTPException instances to Werkzeug responses then fall into the normal
BaseResponse -> Response case to ultimately get an Odoo response object
out of the HTTPException instance.
Diffstat (limited to 'addons/analytic_user_function/analytic_user_function_view.xml')
0 files changed, 0 insertions, 0 deletions
