Commit 410cab17 authored by Jérome Perrin's avatar Jérome Perrin

hal_json_style/Base_redirect: pass an URL to Redirect

Even if this is not used because we have locked a status earlier, the
constructor expects an URL with zExceptions 4
parent d6827c79
...@@ -88,5 +88,5 @@ if (form_id not in [None, 'Base_viewFakePythonScriptActionForm', 'Base_viewFakeJ ...@@ -88,5 +88,5 @@ if (form_id not in [None, 'Base_viewFakePythonScriptActionForm', 'Base_viewFakeJ
result = json.dumps(result_dict, indent=2) result = json.dumps(result_dict, indent=2)
if abort_transaction: if abort_transaction:
response.setBody(result, lock=True) 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