Commit 0995116a by ichuang Committed by Matthew Mongeau

responsetypes - minor edits

parent f64614b8
...@@ -104,7 +104,7 @@ class LoncapaResponse(object): ...@@ -104,7 +104,7 @@ class LoncapaResponse(object):
self.system = system self.system = system
for abox in inputfields: 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 = "%s: cannot have input field %s" % (unicode(self),abox.tag)
msg += "\nSee XML source line %s" % getattr(xml,'sourceline','<unavailable>') msg += "\nSee XML source line %s" % getattr(xml,'sourceline','<unavailable>')
raise LoncapaProblemError(msg) raise LoncapaProblemError(msg)
...@@ -419,6 +419,8 @@ class NumericalResponse(LoncapaResponse): ...@@ -419,6 +419,8 @@ class NumericalResponse(LoncapaResponse):
else: else:
return CorrectMap(self.answer_id,'incorrect') return CorrectMap(self.answer_id,'incorrect')
# TODO: add check_hint_condition(self,hxml_set,student_answers)
def get_answers(self): def get_answers(self):
return {self.answer_id:self.correct_answer} 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