archimed: json use double quote and not single quote

This commit is contained in:
Jérôme Schneider 2014-11-07 11:13:43 +01:00
parent 6ecd572fef
commit a4ab4e3b3f
1 changed files with 2 additions and 2 deletions

View File

@ -92,11 +92,11 @@ def json_response(env, values, request, response):
else:
logger.warning('archimed json: no nameid id into get')
return HTTPResponse(401, 'Unauthorized', headers,
"{'error': 'bad parameter no nameid'}")
'{"error": "bad parameter no nameid"}')
associations = Association.get(site_name, unique_id)
if not associations:
return HTTPResponse(401, 'Unauthorized', headers,
"{'error': '%s is not associate with %s'}" %\
'{"error": "%s is not associate with %s"}' %\
(unique_id, site_name))
association = associations[0]