1 # -*- coding: utf-8 -*-
2 # This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later.
3 # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
5 from django.utils.translation import ugettext_lazy as _
8 'http://creativecommons.org/licenses/by-sa/3.0/': {
10 'description': _('Creative Commons Attribution-ShareAlike 3.0 Unported'),
14 # Those will be generated only for books with own HTML.
15 EBOOK_FORMATS_WITHOUT_CHILDREN = ['txt', 'fb2']
16 # Those will be generated for all books.
17 EBOOK_FORMATS_WITH_CHILDREN = ['pdf', 'epub', 'mobi']
18 # Those will be generated when inherited cover changes.
19 EBOOK_FORMATS_WITH_COVERS = ['pdf', 'epub', 'mobi']
21 EBOOK_FORMATS = EBOOK_FORMATS_WITHOUT_CHILDREN + EBOOK_FORMATS_WITH_CHILDREN