From: zuber Date: Wed, 30 Sep 2009 11:00:42 +0000 (+0200) Subject: Nie wymagamy poprawnego DublinCore przy renderowaniu do HTML. X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/f1b70c0cd342b6769df2326ffc122add67ccd917?ds=sidebyside;hp=--cc Nie wymagamy poprawnego DublinCore przy renderowaniu do HTML. --- f1b70c0cd342b6769df2326ffc122add67ccd917 diff --git a/apps/api/handlers/library_handlers.py b/apps/api/handlers/library_handlers.py index 4d23478d..0385c0f4 100644 --- a/apps/api/handlers/library_handlers.py +++ b/apps/api/handlers/library_handlers.py @@ -227,7 +227,7 @@ class DocumentHTMLHandler(BaseHandler): return response.BadRequest().django_response({'reason': 'name-mismatch', 'message': 'Provided revision refers, to document "%s", but provided "%s"' % (document.id, docid) }) - return librarian.html.transform(document.data('xml'), is_file=False) + return librarian.html.transform(document.data('xml'), is_file=False, parse_dublincore=False) except (EntryNotFound, RevisionNotFound), e: return response.EntityNotFound().django_response({ 'exception': type(e), 'message': e.message})