fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Drobne poprawki wyĆwietlania.
[redakcja.git]
/
apps
/
api
/
handlers
/
library_handlers.py
diff --git
a/apps/api/handlers/library_handlers.py
b/apps/api/handlers/library_handlers.py
index
6fd7786
..
0ad23d9
100644
(file)
--- a/
apps/api/handlers/library_handlers.py
+++ b/
apps/api/handlers/library_handlers.py
@@
-70,8
+70,7
@@
class LibraryHandler(BaseHandler):
try:
lock = lib.lock()
try:
try:
lock = lib.lock()
try:
- print "DOCID", docid
-
+ print "DOCID", docid
doc = lib.document_create(docid)
# document created, but no content yet
doc = lib.document_create(docid)
# document created, but no content yet
@@
-174,7
+173,7
@@
class DocumentHTMLHandler(BaseHandler):
else:
document = lib.document_for_rev(revision)
else:
document = lib.document_for_rev(revision)
- return librarian.html.transform(document.data('xml'))
+ return librarian.html.transform(document.data('xml')
, is_file=False
)
except RevisionNotFound:
return response.EntityNotFound().django_response()
except RevisionNotFound:
return response.EntityNotFound().django_response()