latex dir for debugging
authorJan Szejko <janek37@gmail.com>
Tue, 21 Mar 2017 11:15:48 +0000 (12:15 +0100)
committerJan Szejko <janek37@gmail.com>
Tue, 21 Mar 2017 11:16:10 +0000 (12:16 +0100)
apps/catalogue/models/book.py
lib/librarian

index a426b08..84c05db 100755 (executable)
@@ -439,3 +439,7 @@ class Book(models.Model):
         for c in changes:
             ChunkPublishRecord.objects.create(book_record=br, change=c)
         post_publish.send(sender=br)
         for c in changes:
             ChunkPublishRecord.objects.create(book_record=br, change=c)
         post_publish.send(sender=br)
+
+    def latex_dir(self):
+        doc = self.wldocument()
+        return doc.latex_dir(cover=True, ilustr_path=self.gallery_path())
index 2ea20e3..d0e562e 160000 (submodule)
@@ -1 +1 @@
-Subproject commit 2ea20e32dd822ece8a2df9693da42cfdaffcbc72
+Subproject commit d0e562ed982c428d4df66994450a70339b69a5ff