class Luki(Exercise):
def find_pieces(self, question):
- return question.xpath("//luka")
+ print question.xpath(".//luka")
+ return question.xpath(".//luka")
def solution_html(self, piece):
return piece.text + ''.join(
return qpre, qpost
def handle_opis(self, element):
- pre, post = super(Luki, self).handle_opis(element)
- return pre, self.words_html + post
+ return '', self.words_html
def handle_luka(self, element):
self.piece_counter += 1
class Zastap(Luki):
def find_pieces(self, question):
- return question.xpath("//zastap")
+ return question.xpath(".//zastap")
def solution_html(self, piece):
return piece.attrib['rozw']