try:
lock = lib.lock()
try:
- print "DOCID", docid
-
+ print "DOCID", docid
doc = lib.document_create(docid)
# document created, but no content yet
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()