Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
9b6f8a36
Commit
9b6f8a36
authored
Feb 09, 2013
by
David Ormsbee
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1475 from MITx/feature/brian/pearson-exam
change missingExamSeriesCode to missingPartnerID
parents
80843c15
2a1c89be
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
common/djangoapps/student/views.py
+5
-3
No files found.
common/djangoapps/student/views.py
View file @
9b6f8a36
...
@@ -1112,9 +1112,11 @@ def test_center_login(request):
...
@@ -1112,9 +1112,11 @@ def test_center_login(request):
# or possibly both. But for now we know what to do with an ExamSeriesCode,
# or possibly both. But for now we know what to do with an ExamSeriesCode,
# while we currently have no record of RegistrationID values at all.
# while we currently have no record of RegistrationID values at all.
if
'vueExamSeriesCode'
not
in
request
.
POST
:
if
'vueExamSeriesCode'
not
in
request
.
POST
:
# TODO: confirm this error code (made up, not in documentation)
# we are not allowed to make up a new error code, according to Pearson,
# so instead of "missingExamSeriesCode", we use a valid one that is
# inaccurate but at least distinct. (Sigh.)
log
.
error
(
"missing exam series code for cand ID {}"
.
format
(
client_candidate_id
))
log
.
error
(
"missing exam series code for cand ID {}"
.
format
(
client_candidate_id
))
return
HttpResponseRedirect
(
makeErrorURL
(
error_url
,
"missing
ExamSeriesCode
"
));
return
HttpResponseRedirect
(
makeErrorURL
(
error_url
,
"missing
PartnerID
"
));
exam_series_code
=
request
.
POST
.
get
(
'vueExamSeriesCode'
)
exam_series_code
=
request
.
POST
.
get
(
'vueExamSeriesCode'
)
# special case for supporting test user:
# special case for supporting test user:
if
client_candidate_id
==
"edX003671291147"
and
exam_series_code
!=
'6002x001'
:
if
client_candidate_id
==
"edX003671291147"
and
exam_series_code
!=
'6002x001'
:
...
@@ -1188,7 +1190,7 @@ def test_center_login(request):
...
@@ -1188,7 +1190,7 @@ def test_center_login(request):
# this information is correct, we allow the user to be logged in
# this information is correct, we allow the user to be logged in
# without a password. This could all be formalized in a backend object
# without a password. This could all be formalized in a backend object
# that does the above checking.
# that does the above checking.
# TODO: create a backend class to do this.
# TODO:
(brian)
create a backend class to do this.
# testcenteruser.user.backend = "%s.%s" % (backend.__module__, backend.__class__.__name__)
# testcenteruser.user.backend = "%s.%s" % (backend.__module__, backend.__class__.__name__)
testcenteruser
.
user
.
backend
=
"
%
s.
%
s"
%
(
"TestcenterAuthenticationModule"
,
"TestcenterAuthenticationClass"
)
testcenteruser
.
user
.
backend
=
"
%
s.
%
s"
%
(
"TestcenterAuthenticationModule"
,
"TestcenterAuthenticationClass"
)
login
(
request
,
testcenteruser
.
user
)
login
(
request
,
testcenteruser
.
user
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment