From b9bce2dc718a9146a202057e4bb1809927d9caf6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C5=81ukasz=20Rekucki?= Date: Mon, 28 Sep 2009 16:20:26 +0200 Subject: [PATCH 1/1] Fixed text update. --- apps/api/handlers/library_handlers.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/api/handlers/library_handlers.py b/apps/api/handlers/library_handlers.py index c5666dd0..64b95c2d 100644 --- a/apps/api/handlers/library_handlers.py +++ b/apps/api/handlers/library_handlers.py @@ -284,14 +284,14 @@ class DocumentTextHandler(BaseHandler): try: # return the new revision number - return { + return response.SuccessAllOk.django_response({ "document": ndoc.id, "subview": "xml", "previous_revision": current.revision, "updated_revision": ndoc.revision - } + }) except Exception, e: - lib._rollback() + if ndoc: lib._rollback() raise e except RevisionNotFound, e: return response.EntityNotFound().django_response(e) -- 2.20.1