From b4556e622c3ab6df484dd8478cd5210f05188417 Mon Sep 17 00:00:00 2001 From: Gerolf Ziegenhain Date: Mon, 25 Aug 2008 17:24:43 +0200 Subject: [PATCH] . --- interface.py | 7 ++++++- questions.py | 8 ++++---- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/interface.py b/interface.py index e29236d..824d333 100755 --- a/interface.py +++ b/interface.py @@ -130,11 +130,16 @@ class MyHandler(BaseHTTPRequestHandler): q.AskQuestion("TB305") + self.wfile.write("
") self.wfile.write(q.question) - self.wfile.write(q.answera) + self.wfile.write("
") + + self.wfile.write("
") + self.wfile.write("A"+q.answera+"
") self.wfile.write(q.answerb) self.wfile.write(q.answerc) self.wfile.write(q.answerd) + self.wfile.write("
") self.wfile.write("") diff --git a/questions.py b/questions.py index a1cf4f8..b11a0dc 100755 --- a/questions.py +++ b/questions.py @@ -63,10 +63,10 @@ class Questions: break self.question = str(q[1]) self.correct = "a" - self.answera = "A:",q[2][0][0][0] - self.answera = "B:",q[2][1][0][0] - self.answera = "C:",q[2][2][0][0] - self.answera = "D:",q[2][3][0][0] + self.answera = q[2][0][0][0] + self.answerb = q[2][1][0][0] + self.answerc = q[2][2][0][0] + self.answerd = q[2][3][0][0] def __init__(self,filename="Questions/questions.xml"): self.filename=filename -- 2.11.4.GIT