Commit 2ffc8819 by ichuang

responsetypes - minor edits

parent 462823c3
......@@ -104,7 +104,7 @@ class LoncapaResponse(object):
self.system = system
for abox in inputfields:
if not abox.tag in self.allowed_inputfields:
if abox.tag not in self.allowed_inputfields:
msg = "%s: cannot have input field %s" % (unicode(self),abox.tag)
msg += "\nSee XML source line %s" % getattr(xml,'sourceline','<unavailable>')
raise LoncapaProblemError(msg)
......@@ -419,6 +419,8 @@ class NumericalResponse(LoncapaResponse):
else:
return CorrectMap(self.answer_id,'incorrect')
# TODO: add check_hint_condition(self,hxml_set,student_answers)
def get_answers(self):
return {self.answer_id:self.correct_answer}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment