From 0995116a83d6cf2aa2c9484fd80d0afabe0c2200 Mon Sep 17 00:00:00 2001 From: ichuang Date: Tue, 12 Jun 2012 13:40:03 -0400 Subject: [PATCH] responsetypes - minor edits --- common/lib/capa/responsetypes.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/lib/capa/responsetypes.py b/common/lib/capa/responsetypes.py index 85e6311d61..56dfd32343 100644 --- a/common/lib/capa/responsetypes.py +++ b/common/lib/capa/responsetypes.py @@ -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','') 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}