From 9bc8dbd7ca3517dfb8ad8b5d8ada65ba0928e019 Mon Sep 17 00:00:00 2001 From: Vik Paruchuri Date: Wed, 20 Feb 2013 18:04:25 -0500 Subject: [PATCH] Fix location strings, re-order checkboxes --- .../xmodule/open_ended_grading_classes/openendedchild.py | 6 +++--- lms/templates/peer_grading/peer_grading_problem.html | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/common/lib/xmodule/xmodule/open_ended_grading_classes/openendedchild.py b/common/lib/xmodule/xmodule/open_ended_grading_classes/openendedchild.py index 780f80a7a7..47a0980a83 100644 --- a/common/lib/xmodule/xmodule/open_ended_grading_classes/openendedchild.py +++ b/common/lib/xmodule/xmodule/open_ended_grading_classes/openendedchild.py @@ -437,14 +437,14 @@ class OpenEndedChild(object): error_string = ("You need to peer grade {0} more in order to make another submission. " "You have graded {1}, and {2} are required. You have made {3} successful peer grading submissions.") try: - response = self.peer_gs.get_data_for_location(location, student_id) + response = self.peer_gs.get_data_for_location(location_string, student_id) count_graded = response['count_graded'] count_required = response['count_required'] student_sub_count = response['student_sub_count'] success = True except: #This is a dev_facing_error - log.error("Could not contact external open ended graders for location {0} and student {1}".format(location,student_id)) + log.error("Could not contact external open ended graders for location {0} and student {1}".format(location_string,student_id)) #This is a student_facing_error error_message = "Could not contact the graders. Please notify course staff." return success, allowed_to_submit, error_message @@ -457,7 +457,7 @@ class OpenEndedChild(object): return success, allowed_to_submit, error_message def get_eta(self): - response = self.controller_qs.check_for_eta(self.location.url()) + response = self.controller_qs.check_for_eta(self.location_string) try: response = json.loads(response) except: diff --git a/lms/templates/peer_grading/peer_grading_problem.html b/lms/templates/peer_grading/peer_grading_problem.html index 853fa750e8..87559ec877 100644 --- a/lms/templates/peer_grading/peer_grading_problem.html +++ b/lms/templates/peer_grading/peer_grading_problem.html @@ -43,8 +43,8 @@

Please include some written feedback as well.

-

Flag this submission for review by course staff (use if the submission contains inappropriate content):

-

I do not know how to grade this question:

+
Flag this submission for review by course staff (use if the submission contains inappropriate content)
+
I do not know how to grade this question