Commit 2617d934 authored by Bryton Lacquement's avatar Bryton Lacquement 🚪

erp5_hal_json_style: temporary workaround for WSGI

This fixes the issue that a truncated traceback followed the json.
parent cd18daf4
...@@ -76,6 +76,6 @@ if (form_id is not None) and \ ...@@ -76,6 +76,6 @@ if (form_id is not None) and \
result = json.dumps(result_dict, indent=2) result = json.dumps(result_dict, indent=2)
if abort_transaction: if abort_transaction:
response.write(result) response.setBody(result, lock=True)
raise Redirect raise Redirect
return result return result
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment