From: Radek Czajka Date: Fri, 15 Feb 2013 16:00:14 +0000 (+0100) Subject: student-teacher customization X-Git-Url: https://git.mdrn.pl/librarian.git/commitdiff_plain/fcaf06749607b02e11e4edc3b8ae8313e1a1ef91?ds=sidebyside student-teacher customization --- diff --git a/librarian/pypdf.py b/librarian/pypdf.py index 68e0bd9..387f647 100644 --- a/librarian/pypdf.py +++ b/librarian/pypdf.py @@ -548,7 +548,7 @@ def fix_lists(tree): class EduModulePDFFormat(PDFFormat): def get_texml(self): - edumod = EduModule({"teacher": True}) + edumod = EduModule({"teacher": self.customization.get('teacher')}) texml = edumod.generate(fix_lists(self.wldoc.edoc.getroot())).encode('utf-8') open("/tmp/texml.xml", "w").write(texml)