From: Guillaume Pellerin Date: Thu, 28 May 2015 15:36:50 +0000 (+0200) Subject: fix again X-Git-Tag: 1.6a~4^2~40 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=60b3f31559ea8e7b7b56d6e3fd74ad9ec804ed77;p=telemeta.git fix again --- diff --git a/telemeta/views/epub.py b/telemeta/views/epub.py index 93d81f96..8215256c 100644 --- a/telemeta/views/epub.py +++ b/telemeta/views/epub.py @@ -90,7 +90,7 @@ class BaseEpubMixin(TelemetaBaseMixin): self.book.set_cover(filename, open(media.file.path, 'r').read()) break - context = {'mode_single': mode_single} + context = {} preamble = epub.EpubHtml(title='Preamble', file_name='preamble' + '.xhtml', lang='fr') preamble.content = render_to_string(self.template_preamble, context) preamble.is_chapter = False @@ -147,7 +147,7 @@ class BaseEpubMixin(TelemetaBaseMixin): title = collection.title subtitle = '' - context = {'collection': collection, 'title': title, 'subtitle': subtitle, + context = {'collection': collection, 'title': title, 'subtitle': subtitle, 'mode_single': mode_single, 'site': site, 'items': items, 'default_image': default_image_relative_path} c = epub.EpubHtml(title=' - '.join([title, subtitle]), file_name=collection.code + '.xhtml', lang='fr') c.content = render_to_string(self.template, context)