# Save XML and HTML files
book.xml_file.save('%s.xml' % book.slug, raw_file, save=False)
+ book.build_cover(book_info)
# delete old fragments when overwriting
book.fragments.all().delete()
if book.build_html():
+ # No direct saves behind this point.
if not settings.NO_BUILD_TXT and build_txt:
book.build_txt()
- book.build_cover(book_info)
-
if not settings.NO_BUILD_EPUB and build_epub:
book.build_epub()
for tag in descendants_tags:
tasks.touch_tag(tag)
- book.save()
-
# refresh cache
book.reset_tag_counter()
book.reset_theme_counter()