[FIX] http: force rolleback for failed http request
authorMartin Trigaux <mat@openerp.com>
Wed, 21 May 2014 17:12:37 +0000 (19:12 +0200)
committerMartin Trigaux <mat@openerp.com>
Wed, 21 May 2014 17:12:37 +0000 (19:12 +0200)
commita096ae0080bc6555a8b832e87d4de6b827257304
treee106b16d4fbf0d454963ce09855b97848edf2e80
parent2cc28ce65b56d031a4ff50fc80946111a4a4bb8b
[FIX] http: force rolleback for failed http request

1st issue:
When an exception was raised, it was badly handled by the website in case of
website_enabled key. The response page was generated without calling super.
The WebRequest object being responsible to rollback the transaction in case
of errors.

2sd issue:
The _failed attribute is required to rollback the transaction in an WebRequest
object. Previously it was only set in the JsonRequest object (which inherit
from WebRequest), replace by call to super. The attribute _failed is now set
in the WebRequest object.
addons/website/models/ir_http.py
openerp/http.py