Merge pull request #761 from odoo-dev/saas-3-handle-exception-fme
authorodony <odo@openerp.com>
Wed, 25 Jun 2014 14:08:19 +0000 (16:08 +0200)
committerodony <odo@openerp.com>
Wed, 25 Jun 2014 14:08:19 +0000 (16:08 +0200)
commitbac08227e28fcd8fb16ea173308761ff1a8ad6f3
tree7969558f2a16302da37b668df487405bcfb7099a
parenta66f3dd99243ee87281b3e44c9fc202609e34f49
parentf988d7503537990b31b9e643e3d69ae7e27b1375
Merge pull request #761 from odoo-dev/saas-3-handle-exception-fme

[FIX] _handle_exception() logic amongst requests and ir_http objects

Changes in website's ir_http#_handle_exception():
* exception is mandatory, can't be None anymore
* we don't touch non website_enabled requests
* we don't touch explicits plain responses from parent
* logic flow is now easier to read (I hope so)
* check for openerp's AccessError and convert to 403 errors

Change in website's ir_http#_dispatch():
* In case of real 404, instead of returning self._handle_exception(), just let parent do the job (so we call super())