log.error("Could not parse due date {0} for location {1}".format(display_due_date_string,location))
log.error("Could not parse due date {0} for location {1}. Contact the learning sciences group for assistance.".format(display_due_date_string,location))
raise
else:
self.display_due_date=None
...
...
@@ -170,7 +170,7 @@ class CombinedOpenEndedV1Module():
log.error("Error parsing the grace period {0} for location {1}".format(grace_period_string,location))
log.error("Error parsing the grace period {0} for location {1}. Contact the learning sciences group for assistance.".format(grace_period_string,location))
raise
else:
self.grace_period=None
...
...
@@ -807,7 +807,7 @@ class CombinedOpenEndedV1Descriptor(XmlDescriptor, EditingDescriptor):
forchildinexpected_children:
iflen(xml_object.xpath(child))==0:
#This is a staff_facing_error
raiseValueError("Combined Open Ended definition must include at least one '{0}' tag".format(child))
raiseValueError("Combined Open Ended definition must include at least one '{0}' tag. Contact the learning sciences group for assistance.".format(child))
@@ -83,7 +83,7 @@ class CombinedOpenEndedRubric(object):
rubric_feedback=rubric_dict['html']
ifnotsuccess:
#This is a staff_facing_error
error_message="Could not parse rubric : {0} for location {1}".format(rubric_string,location.url())
error_message="Could not parse rubric : {0} for location {1}. Contact the learning sciences group for assistance.".format(rubric_string,location.url())
log.error(error_message)
raiseRubricParsingError(error_message)
...
...
@@ -93,14 +93,14 @@ class CombinedOpenEndedRubric(object):
total=total+len(category['options'])-1
iflen(category['options'])>(max_score_allowed+1):
#This is a staff_facing_error
error_message="Number of score points in rubric {0} higher than the max allowed, which is {1}".format(
error_message="Number of score points in rubric {0} higher than the max allowed, which is {1}. Contact the learning sciences group for assistance.".format(
len(category['options']),max_score_allowed)
log.error(error_message)
raiseRubricParsingError(error_message)
iftotal!=max_score:
#This is a staff_facing_error
error_msg="The max score {0} for problem {1} does not match the total number of points in the rubric {2}".format(
error_msg="The max score {0} for problem {1} does not match the total number of points in the rubric {2}. Contact the learning sciences group for assistance.".format(
max_score,location,total)
log.error(error_msg)
raiseRubricParsingError(error_msg)
...
...
@@ -123,7 +123,7 @@ class CombinedOpenEndedRubric(object):
forcategoryinelement:
ifcategory.tag!='category':
#This is a staff_facing_error
raiseRubricParsingError("[extract_categories] Expected a <category> tag: got {0} instead".format(category.tag))
raiseRubricParsingError("[extract_categories] Expected a <category> tag: got {0} instead. Contact the learning sciences group for assistance.".format(category.tag))
@@ -150,13 +150,13 @@ class CombinedOpenEndedRubric(object):
# if we are missing the score tag and we are expecting one
elifself.has_score:
#This is a staff_facing_error
raiseRubricParsingError("[extract_category] Category {0} is missing a score".format(descriptionxml.text))
raiseRubricParsingError("[extract_category] Category {0} is missing a score. Contact the learning sciences group for assistance.".format(descriptionxml.text))
raiseRubricParsingError("[extract_category]: expected description tag, got {0} instead. Contact the learning sciences group for assistance.".format(descriptionxml.tag))
description=descriptionxml.text
...
...
@@ -167,7 +167,7 @@ class CombinedOpenEndedRubric(object):
raiseRubricParsingError("[extract_category]: expected option tag, got {0} instead. Contact the learning sciences group for assistance.".format(option.tag))
else:
pointstr=option.get("points")
ifpointstr:
...
...
@@ -177,7 +177,7 @@ class CombinedOpenEndedRubric(object):
points=int(pointstr)
exceptValueError:
#This is a staff_facing_error
raiseRubricParsingError("[extract_category]: expected points to have int, got {0} instead".format(pointstr))
raiseRubricParsingError("[extract_category]: expected points to have int, got {0} instead. Contact the learning sciences group for assistance.".format(pointstr))
elifautonumbering:
# use the generated one if we're in the right mode
points=cur_points
...
...
@@ -228,14 +228,14 @@ class CombinedOpenEndedRubric(object):
'''
iflen(options)==0:
#This is a staff_facing_error
raiseRubricParsingError("[extract_category]: no options associated with this category")
raiseRubricParsingError("[extract_category]: no options associated with this category. Contact the learning sciences group for assistance.")
iflen(options)==1:
return
prev=options[0]['points']
foroptioninoptions[1:]:
ifprev==option['points']:
#This is a staff_facing_error
raiseRubricParsingError("[extract_category]: found duplicate point values between two different options")
raiseRubricParsingError("[extract_category]: found duplicate point values between two different options. Contact the learning sciences group for assistance.")