From 36ded31bc121ec258d35bd209d9da93224f773aa Mon Sep 17 00:00:00 2001 From: Marcin Koziej Date: Wed, 9 Jan 2013 11:07:39 +0100 Subject: [PATCH] fix generation of tags --- librarian/pyhtml.py | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/librarian/pyhtml.py b/librarian/pyhtml.py index 909217a..621340e 100644 --- a/librarian/pyhtml.py +++ b/librarian/pyhtml.py @@ -194,14 +194,17 @@ class Wybor(Excercise): class Uporzadkuj(Excercise): - def handle_cwiczenie(self, element): - pre, post = super(Uporzadkuj, self).handle_cwiczenie(element) + def handle_pytanie(self, element): + """ +Overrides the returned content default handle_pytanie + """ + # we ignore the result, returning our own + super(Uporzadkuj, self).handle_pytanie(element) order_items = element.xpath(".//punkt/@rozw") - if order_items == []: pdb.set_trace() - return pre + u"""
""" % \ - ','.join(order_items), \ - u"""
""" + post + return u"""
""" % \ + (','.join(order_items), self.question_counter), \ + u"""
""" def handle_punkt(self, element): return """
  • """ \ -- 2.20.1