fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
remove testing
[wolnelektury.git]
/
src
/
api
/
emitters.py
diff --git
a/src/api/emitters.py
b/src/api/emitters.py
index
36babb2
..
531ae19
100644
(file)
--- a/
src/api/emitters.py
+++ b/
src/api/emitters.py
@@
-69,3
+69,11
@@
class SsiXmlEmitter(SsiEmitterMixin, XMLEmitter):
'</resource><resource>'.join(self.construct().get_ssis('xml'))
Emitter.register('xml', SsiXmlEmitter, 'text/xml; charset=utf-8')
'</resource><resource>'.join(self.construct().get_ssis('xml'))
Emitter.register('xml', SsiXmlEmitter, 'text/xml; charset=utf-8')
+
+
+# hack
+class EpubEmitter(Emitter):
+ def render(self, request):
+ return self.data
+
+Emitter.register('epub', EpubEmitter, 'application/epub+zip')