Commit 3c8360da authored by Titouan Soulard's avatar Titouan Soulard

erp5_api_style: FIXUP update calls

parent bc7c8b65
...@@ -107,7 +107,6 @@ if mode in ("get", "put"): ...@@ -107,7 +107,6 @@ if mode in ("get", "put"):
else: else:
document = context document = context
result_list = []
error_dict = {} error_dict = {}
match = False match = False
...@@ -130,7 +129,6 @@ for erp5_action_key in erp5_action_dict.keys(): ...@@ -130,7 +129,6 @@ for erp5_action_key in erp5_action_dict.keys():
if response.getStatus() < 400: if response.getStatus() < 400:
response.setStatus(201) response.setStatus(201)
return result return result
#return json.dumps(result, indent=2)
except ValueError as e: except ValueError as e:
if mode in ("put", "get"): if mode in ("put", "get"):
portal.ERP5Site_logApiErrorAndReturn( portal.ERP5Site_logApiErrorAndReturn(
......
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