Added comment

This commit is contained in:
Julian Arni
2013-02-07 14:50:18 -05:00
parent a770e34bec
commit 8a75e1ad19

View File

@@ -633,9 +633,11 @@ class MultipleChoiceResponse(LoncapaResponse):
# define correct choices (after calling secondary setup)
xml = self.xml
cxml = xml.xpath('//*[@id=$id]//choice', id=xml.get('id'))
self.correct_choices = [contextualize_text(choice.get('name'),
self.context) for choice in cxml if
contextualize_text(choice.get('correct'), self.context) == "true"]
# contextualize correct attribute and then select ones for which
# correct = "true"
self.correct_choices = [contextualize_text(choice.get('name'), self.context)
for choice in cxml
if contextualize_text(choice.get('correct'), self.context) == "true"]
def mc_setup_response(self):
'''