student-teacher customization
authorRadek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>
Fri, 15 Feb 2013 16:00:14 +0000 (17:00 +0100)
committerRadek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>
Fri, 15 Feb 2013 16:00:14 +0000 (17:00 +0100)
librarian/pypdf.py

index 68e0bd9..387f647 100644 (file)
@@ -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)