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
ab6f383b
Commit
ab6f383b
authored
Feb 08, 2013
by
Brian Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
support for Pearson test user
parent
f1198b5f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
common/djangoapps/student/views.py
+4
-2
No files found.
common/djangoapps/student/views.py
View file @
ab6f383b
...
...
@@ -1100,7 +1100,6 @@ def test_center_login(request):
# registration_id = request.POST.get("registrationID")
# exit_url = request.POST.get("exitURL")
# find testcenter_user that matches the provided ID:
try
:
testcenteruser
=
TestCenterUser
.
objects
.
get
(
client_candidate_id
=
client_candidate_id
)
...
...
@@ -1108,7 +1107,6 @@ def test_center_login(request):
log
.
error
(
"not able to find demographics for cand ID {}"
.
format
(
client_candidate_id
))
return
HttpResponseRedirect
(
makeErrorURL
(
error_url
,
"invalidClientCandidateID"
));
# find testcenter_registration that matches the provided exam code:
# Note that we could rely in future on either the registrationId or the exam code,
# or possibly both. But for now we know what to do with an ExamSeriesCode,
...
...
@@ -1118,6 +1116,10 @@ def test_center_login(request):
log
.
error
(
"missing exam series code for cand ID {}"
.
format
(
client_candidate_id
))
return
HttpResponseRedirect
(
makeErrorURL
(
error_url
,
"missingExamSeriesCode"
));
exam_series_code
=
request
.
POST
.
get
(
'vueExamSeriesCode'
)
# special case for supporting test user:
if
client_candidate_id
==
"edX003671291147"
and
exam_series_code
!=
'6002x001'
:
log
.
warning
(
"test user {} using unexpected exam code {}, coercing to 6002x001"
.
format
(
client_candidate_id
,
exam_series_code
))
exam_series_code
=
'6002x001'
registrations
=
TestCenterRegistration
.
objects
.
filter
(
testcenter_user
=
testcenteruser
,
exam_series_code
=
exam_series_code
)
if
not
registrations
:
...
...
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