#Loop through each task state and make sure it matches the xml definition
for(i,t)inenumerate(self.task_states):
...
...
@@ -221,8 +222,14 @@ class CombinedOpenEndedV1Module():
break
defreset_task_state(self,message=""):
info_message="Combined open ended user state for user {0} in location {1} was invalid. Reset it. {2}".format(self.system.anonymous_student_id,self.location.url(),message)
"""
Resets the task states. Moves current task state to an old_state variable, and then makes the task number 0.
:param message: A message to put in the log.
:return: None
"""
info_message="Combined open ended user state for user {0} in location {1} was invalid. It has been reset, and you now have a new attempt. {2}".format(self.system.anonymous_student_id,self.location.url(),message)