# HG changeset patch # User verrierj # Date 1320229791 -3600 # Node ID 3035dd9f1a9d701d0f343d042172a86e16ddee16 # Parent 812ffe52038b887466c80aef865c7f5ef59988a3 Fix typo in documentation diff -r 812ffe52038b -r 3035dd9f1a9d src/ldt/ldt/api/ldt/handlers.py --- a/src/ldt/ldt/api/ldt/handlers.py Thu Oct 27 13:56:17 2011 +0200 +++ b/src/ldt/ldt/api/ldt/handlers.py Wed Nov 02 11:29:51 2011 +0100 @@ -29,10 +29,10 @@ If the submitted file is not valid or refers to a media that is not contained in the project, a 500 ("Bad Request") error will be returned. If the "type" field of an annotation matches an already existing cutting, it will be added to that cutting. Otherwise, a new cutting will be added (as well as a new ensemble if needed). New cuttings are added to the view - "View at the last recording" if it exists, or the the view "Init view" else. If none of those views exist, the server will + "View at the last recording" if it exists, or to the view "Init view" else. If none of those views exist, the server will not add the cutting to a view. Several annotations can be added at the same time if the submitted file contains multiple annotations. The server returns the file submitted if all annotations have been added successfully, and adds to this file - IDs of created annotations to the file. + IDs of created annotations to the file with a 200("OK") error code. If no content-type header is set, the file submitted must be a valid XML file and will replace entirely the ldt field of the project without any verifications. @@ -135,7 +135,7 @@ if not new_id: return rc.BAD_REQUEST a['id'] = new_id - + return request.data else: