[FIX] _handle_exception() logic amongst requests and ir_http objects
authorFabien Meghazi <fme@openerp.com>
Wed, 25 Jun 2014 09:47:44 +0000 (11:47 +0200)
committerFabien Meghazi <fme@openerp.com>
Wed, 25 Jun 2014 09:47:44 +0000 (11:47 +0200)
commit4e0799e16319e03797e915e93db8326a8b302784
treeb7c6c4ef2e40223d5a43b735246db44fc5f0554b
parente1e0cfbba83bc5e91216338ccf9f09f289f9e845
[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)

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())
addons/website/models/ir_http.py