fnp
/
redakcja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
cde9813
)
Fixed text update.
author
Łukasz Rekucki
<lrekucki@gmail.com>
Mon, 28 Sep 2009 14:20:26 +0000
(16:20 +0200)
committer
Łukasz Rekucki
<lrekucki@gmail.com>
Mon, 28 Sep 2009 14:20:26 +0000
(16:20 +0200)
apps/api/handlers/library_handlers.py
patch
|
blob
|
history
diff --git
a/apps/api/handlers/library_handlers.py
b/apps/api/handlers/library_handlers.py
index
c5666dd
..
64b95c2
100644
(file)
--- 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
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
"document": ndoc.id,
"subview": "xml",
"previous_revision": current.revision,
"updated_revision": ndoc.revision
- }
+ }
)
except Exception, e:
except Exception, e:
- lib._rollback()
+
if ndoc:
lib._rollback()
raise e
except RevisionNotFound, e:
return response.EntityNotFound().django_response(e)
raise e
except RevisionNotFound, e:
return response.EntityNotFound().django_response(e)