Merge lp:~florent.x/openerp-web/6.1-fix-crash-report into lp:openerp-web/6.1

Proposed by Florent
Status: Needs review
Proposed branch: lp:~florent.x/openerp-web/6.1-fix-crash-report
Merge into: lp:openerp-web/6.1
Diff against target: 12 lines (+1/-1)
1 file modified
addons/web/common/http.py (+1/-1)
To merge this branch: bzr merge lp:~florent.x/openerp-web/6.1-fix-crash-report
Reviewer Review Type Date Requested Status
Antony Lesuisse (OpenERP) Pending
OpenERP R&D Web Team Pending
OpenERP Core Team Pending
Review via email: mp+123031@code.launchpad.net

Description of the change

This fixes the button "Send Report" when a crash occurs.
With this patch, the data provided by the user are correctly sent.

To post a comment you must log in.

Unmerged revisions

2451. By Florent

[FIX] the Send-Crash-Report didn't send information provided by the user.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'addons/web/common/http.py'
2--- addons/web/common/http.py 2012-06-21 10:33:42 +0000
3+++ addons/web/common/http.py 2012-09-06 08:46:21 +0000
4@@ -281,7 +281,7 @@
5 }
6 })))
7 if self.debug or 1:
8- if isinstance(r, (werkzeug.wrappers.BaseResponse, werkzeug.exceptions.HTTPException)):
9+ if not r or isinstance(r, (werkzeug.wrappers.BaseResponse, werkzeug.exceptions.HTTPException)):
10 _logger.debug('<-- %s', r)
11 else:
12 _logger.debug("<-- size: %s", len(r))