diff --git a/common/djangoapps/student/models.py b/common/djangoapps/student/models.py index 955876eb66..d9ac973271 100644 --- a/common/djangoapps/student/models.py +++ b/common/djangoapps/student/models.py @@ -53,9 +53,6 @@ from django.forms import ModelForm, forms import comment_client as cc from django_comment_client.models import Role -from feedparser import binascii -import os - log = logging.getLogger(__name__) @@ -329,7 +326,7 @@ class TestCenterUserForm(ModelForm): # our own code to indicate that a request has been rejected. ACCOMMODATION_REJECTED_CODE = 'NONE' -ACCOMODATION_CODES = ( +ACCOMMODATION_CODES = ( (ACCOMMODATION_REJECTED_CODE, 'No Accommodation Granted'), ('EQPMNT', 'Equipment'), ('ET12ET', 'Extra Time - 1/2 Exam Time'), @@ -342,6 +339,8 @@ ACCOMODATION_CODES = ( ('SRSEAN', 'Separate Room and Service Animal'), ('SRSGNR', 'Separate Room and Sign Language Interpreter'), ) + +ACCOMMODATION_CODE_DICT = { code : name for (code, name) in ACCOMMODATION_CODES } class TestCenterRegistration(models.Model): """ @@ -494,14 +493,11 @@ class TestCenterRegistration(models.Model): def is_pending(self): return not self.is_accepted and not self.is_rejected - @property - def is_pending_accommodation(self): - return self.accommodation_is_pending - - @property - def is_pending_acknowledgement(self): - return (not self.is_accepted and not self.is_rejected) and not self.is_pending_accommodation + def get_accommodation_codes(self): + return self.accommodation_code.split('*') + def get_accommodation_names(self): + return [ ACCOMMODATION_CODE_DICT.get(code, "Unknown code " + code) for code in self.get_accommodation_codes() ] class TestCenterRegistrationForm(ModelForm): class Meta: diff --git a/lms/templates/dashboard.html b/lms/templates/dashboard.html index c210f6e7be..ba827e1219 100644 --- a/lms/templates/dashboard.html +++ b/lms/templates/dashboard.html @@ -249,7 +249,7 @@
+ contact edX for further help. % endif diff --git a/lms/templates/test_center_register.html b/lms/templates/test_center_register.html index f972599b7a..0db34cec00 100644 --- a/lms/templates/test_center_register.html +++ b/lms/templates/test_center_register.html @@ -102,12 +102,14 @@ % if registration: + + <% exam_help_href = "mailto:exam-help@edx.org?subject=Pearson VUE Exam - %s %s".format(get_course_about_section(course, 'university'), course.number) %> % if registration.is_rejected: % endif @@ -344,7 +346,10 @@ % if registration.demographics_is_rejected:The demographic information you most recently provided has been rejected by Pearson. You can correct and submit it again before the exam registration closes on ${exam_info.registration_end_date_text}.
+The demographic information you most recently provided has been rejected by Pearson. You can correct and submit it again before the exam registration closes on ${exam_info.registration_end_date_text}. + The error message is:
+${registration.testcenter_user.upload_error_message}.
+If the error is not correctable by revising demographic information and resubmitting, please contact edX at exam-help@edx.org.
Your requested accommodations have been reviewed and processed. You are allowed:
Your exam registration has been rejected by Pearson. You currently cannot schedule an exam.
+Your exam registration has been rejected by Pearson. You currently cannot schedule an exam. + Please contact edX at exam-help@edx.org. The error message is:
+${registration.upload_error_message}.