From 723bbca1bfd747722ee2ccd1ae1b262c497144de Mon Sep 17 00:00:00 2001 From: Marcin Koziej Date: Wed, 6 Feb 2013 14:18:35 +0100 Subject: [PATCH] these handlers are only used in sub-generation --- librarian/pyhtml.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/librarian/pyhtml.py b/librarian/pyhtml.py index 5538b7f..bed9798 100644 --- a/librarian/pyhtml.py +++ b/librarian/pyhtml.py @@ -42,9 +42,9 @@ class EduModule(Xmill): self.activity_counter += 1 self.options = { 'activity': True, - 'activity_counter': self.activity_counter + 'activity_counter': self.activity_counter, } - submill = EduModule(self.options) + submill = EduModule(dict(self.options.items() + {'sub_gen': True}.items())) opis = submill.generate(element.xpath('opis')[0]) @@ -78,10 +78,10 @@ class EduModule(Xmill): """ % locals() - handle_opis = ifoption(activity=True)(tag('div', 'description')) - handle_wskazowki = ifoption(activity=True)(tag('div', ('hints', 'teacher'))) + handle_opis = ifoption(sub_gen=True)(tag('div', 'description')) + handle_wskazowki = ifoption(sub_gen=True)(tag('div', ('hints', 'teacher'))) - @ifoption(activity=True) + @ifoption(sub_gen=True) @tagged('div', 'materials') def handle_pomoce(self, _): return "Pomoce: ", "" -- 2.20.1