X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/3d3c2fae86149ea2e5c7d7e4fb971fc84ce2c52a..283ed815395b037ef132b4a9bd1e6e0c9d026183:/apps/api/handlers/library_handlers.py diff --git a/apps/api/handlers/library_handlers.py b/apps/api/handlers/library_handlers.py index 6fd7786f..0ad23d9f 100644 --- 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: - print "DOCID", docid - + print "DOCID", docid 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) - return librarian.html.transform(document.data('xml')) + return librarian.html.transform(document.data('xml'), is_file=False) except RevisionNotFound: return response.EntityNotFound().django_response()