From: Marcin Koziej Date: Wed, 13 Feb 2013 13:17:33 +0000 (+0100) Subject: we should just generate html for luki X-Git-Url: https://git.mdrn.pl/librarian.git/commitdiff_plain/b10cdf123648beb76120194d7f9bb69fc8433ede we should just generate html for luki --- diff --git a/librarian/pyhtml.py b/librarian/pyhtml.py index 43dea65..a6f6686 100644 --- a/librarian/pyhtml.py +++ b/librarian/pyhtml.py @@ -357,9 +357,12 @@ class Luki(Exercise): return question.xpath(".//luka") def solution_html(self, piece): - return piece.text + ''.join( - [etree.tostring(n, encoding=unicode) - for n in piece]) + sub = EduModule() + return sub.generate(piece) + # print piece.text + # return piece.text + ''.join( + # [etree.tostring(n, encoding=unicode) + # for n in piece]) def handle_pytanie(self, element): qpre, qpost = super(Luki, self).handle_pytanie(element)