fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
WYSIWYG for right-aligned poem lines
[redakcja.git]
/
apps
/
catalogue
/
views.py
diff --git
a/apps/catalogue/views.py
b/apps/catalogue/views.py
index
e71b349
..
e6f6cca
100644
(file)
--- a/
apps/catalogue/views.py
+++ b/
apps/catalogue/views.py
@@
-207,7
+207,7
@@
def upload(request):
def serve_xml(request, book, slug):
if not book.accessible(request):
return HttpResponseForbidden("Not authorized.")
def serve_xml(request, book, slug):
if not book.accessible(request):
return HttpResponseForbidden("Not authorized.")
- xml = book.materialize()
+ xml = book.materialize(
publishable=True
)
response = http.HttpResponse(xml, content_type='application/xml')
response['Content-Disposition'] = 'attachment; filename=%s.xml' % slug
return response
response = http.HttpResponse(xml, content_type='application/xml')
response['Content-Disposition'] = 'attachment; filename=%s.xml' % slug
return response