@@ -659,10 +659,10 @@ class OpenEndedModule(openendedchild.OpenEndedChild):
self.send_to_grader(get['student_answer'],system)
self.change_state(self.ASSESSING)
else:
#Error message already defined
#Error message already defined
success=False
else:
#This is a student_facing_error
#This is a student_facing_error
error_message="There was a problem saving the image in your submission. Please try a different image, or try pasting a link to an image into the answer box."
return{
...
...
@@ -679,7 +679,7 @@ class OpenEndedModule(openendedchild.OpenEndedChild):
"""
queuekey=get['queuekey']
score_msg=get['xqueue_body']
#TODO: Remove need for cmap
#TODO: Remove need for cmap
self._update_score(score_msg,queuekey,system)
returndict()# No AJAX return is needed
...
...
@@ -690,7 +690,7 @@ class OpenEndedModule(openendedchild.OpenEndedChild):
Input: Modulesystem object
Output: Rendered HTML
"""
#set context variables and render template
#set context variables and render template
eta_string=None
ifself.child_state!=self.INITIAL:
latest=self.latest_answer()
...
...
@@ -749,7 +749,7 @@ class OpenEndedDescriptor():
"""
forchildin['openendedparam']:
iflen(xml_object.xpath(child))!=1:
#This is a staff_facing_error
#This is a staff_facing_error
raiseValueError(
"Open Ended definition must include exactly one '{0}' tag. Contact the learning sciences group for assistance.".format(
@@ -190,10 +190,10 @@ class SelfAssessmentModule(openendedchild.OpenEndedChild):
self.new_history_entry(get['student_answer'])
self.change_state(self.ASSESSING)
else:
#Error message already defined
#Error message already defined
success=False
else:
#This is a student_facing_error
#This is a student_facing_error
error_message="There was a problem saving the image in your submission. Please try a different image, or try pasting a link to an image into the answer box."
return{
...
...
@@ -227,12 +227,12 @@ class SelfAssessmentModule(openendedchild.OpenEndedChild):
foriinxrange(0,len(score_list)):
score_list[i]=int(score_list[i])
exceptValueError:
#This is a dev_facing_error
#This is a dev_facing_error
log.error("Non-integer score value passed to save_assessment ,or no score list present.")
#This is a student_facing_error
#This is a student_facing_error
return{'success':False,'error':"Error saving your score. Please notify course staff."}
#Record score as assessment and rubric scores as post assessment
#Record score as assessment and rubric scores as post assessment