fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Dodanie Pygments do requirements.txt (używane do kolorowania diffów).
[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
f6720da
..
f97ff6c
100755
(executable)
--- a/
apps/api/handlers/library_handlers.py
+++ b/
apps/api/handlers/library_handlers.py
@@
-313,7
+313,7
@@
class DocumentHTMLHandler(BaseHandler):
@validate_form(forms.DocumentRetrieveForm, 'GET')
@hglibrary
@validate_form(forms.DocumentRetrieveForm, 'GET')
@hglibrary
- def read(self, request, form, docid, lib, stylesheet='
partia
l'):
+ def read(self, request, form, docid, lib, stylesheet='
ful
l'):
"""Read document as html text"""
try:
revision = form.cleaned_data['revision']
"""Read document as html text"""
try:
revision = form.cleaned_data['revision']
@@
-336,7
+336,7
@@
class DocumentHTMLHandler(BaseHandler):
return error
return librarian.html.transform(document.data('xml'), is_file=False, \
return error
return librarian.html.transform(document.data('xml'), is_file=False, \
- parse_dublincore=False, stylesheet=
'full'
,\
+ parse_dublincore=False, stylesheet=
stylesheet
,\
options={
"with-paths": 'boolean(1)',
})
options={
"with-paths": 'boolean(1)',
})