fnp
/
librarian.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Don't call super cause it makes little sense
[librarian.git]
/
librarian
/
pyhtml.py
diff --git
a/librarian/pyhtml.py
b/librarian/pyhtml.py
index
bed9798
..
e5ca40e
100644
(file)
--- a/
librarian/pyhtml.py
+++ b/
librarian/pyhtml.py
@@
-302,7
+302,8
@@
Overrides the returned content default handle_pytanie
class Luki(Exercise):
def find_pieces(self, question):
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(
def solution_html(self, piece):
return piece.text + ''.join(
@@
-325,8
+326,7
@@
class Luki(Exercise):
return qpre, qpost
def handle_opis(self, element):
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
def handle_luka(self, element):
self.piece_counter += 1
@@
-335,7
+335,7
@@
class Luki(Exercise):
class Zastap(Luki):
def find_pieces(self, question):
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']
def solution_html(self, piece):
return piece.attrib['rozw']