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)
[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())


Trivial merge