+ thema.extend(
+ Audience.objects.filter(code__in=meta.audiences).exclude(
+ thema=None).values_list('thema', flat=True)
+ )
+ thema = [Thema.standardize(t) for t in thema]
+ return thema
+
+ def send_book(self, site_book_publish, changes=None):
+ site_book = site_book_publish.site_book
+ site = site_book.site
+ book = site_book.book
+ wlbook = book.wldocument(librarian2=True, changes=changes)
+ meta = wlbook.meta
+
+ cover = LabelMarquiseCover(meta, width=1200).output_file()
+ texts = site.get_texts()
+ epub_file = remote_build(book, 'epub', options={
+ 'fundraising': texts,
+ })
+ mobi_file = remote_build(book, 'mobi', options={
+ 'fundraising': texts,
+ })
+