STAFF_ERROR_MESSAGE='Could not contact the external grading server. Please contact the development team. If you do not have a point of contact, you can contact Vik at vik@edx.org.'
classMockStaffGradingService(object):
"""
A simple mockup of a staff grading service, testing.
"""
def__init__(self):
self.cnt=0
...
...
@@ -45,13 +47,16 @@ class MockStaffGradingService(object):
'Peer Grading':"View all problems that require peer assessment in this particular course.",
'Staff Grading':"View ungraded submissions submitted by students for the open ended problems in the course.",
'Problems you have submitted':"View open ended problems that you have previously submitted for grading.",
'Flagged Submissions':"View submissions that have been flagged by students as inappropriate."
}
}
ALERT_DICT={
'Peer Grading':"New submissions to grade",
'Staff Grading':"New submissions to grade",
'Problems you have submitted':"New grades have been returned",
'Flagged Submissions':"Submissions have been flagged for review"
}
}
STUDENT_ERROR_MESSAGE="Error occured while contacting the grading service. Please notify course staff."
STAFF_ERROR_MESSAGE="Error occured while contacting the grading service. Please notify the development team. If you do not have a point of contact, please email Vik at vik@edx.org"
returnHttpResponse(json.dumps({'success':False,'error':STAFF_ERROR_MESSAGE+'Missing key {0} from submission. Please reload and try again.'.format(key)}),
returnHttpResponse(json.dumps({'success':False,
'error':STAFF_ERROR_MESSAGE+'Missing key {0} from submission. Please reload and try again.'.format(