From 442bb7a7dbe505814087a0e66988a9bea57d9197 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sun, 20 Mar 2011 03:16:38 +0900 Subject: [PATCH] htmlQuestion/answer() shouldn't be needed anymore --- anki/cards.py | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/anki/cards.py b/anki/cards.py index f403c9945..79bd640b0 100644 --- a/anki/cards.py +++ b/anki/cards.py @@ -123,26 +123,3 @@ streak=?, lapses=?, grade=?, cycles=?, edue=? where id = ?""", def timeTaken(self): "Time taken to answer card, in integer MS." return int(min(time.time() - self.timerStarted, MAX_TIMER)*1000) - - # Questions and answers - ########################################################################## - - def htmlQuestion(self, type="question", align=True): - div = '''
%s
''' % ( - type[0], type[0], hexifyID(self.tid), - getattr(self, type)) - # add outer div & alignment (with tables due to qt's html handling) - if not align: - return div - attr = type + 'Align' - if getattr(self.cardModel, attr) == 0: - align = "center" - elif getattr(self.cardModel, attr) == 1: - align = "left" - else: - align = "right" - return (("
" % align) + - div + "
") - - def htmlAnswer(self, align=True): - return self.htmlQuestion(type="answer", align=align)