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
f1198b5f
Commit
f1198b5f
authored
Feb 08, 2013
by
Brian Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
for starting pearson exam, just call jump_to() instead of reverse(jump_to...)
parent
290368ef
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
common/djangoapps/student/views.py
+2
-4
No files found.
common/djangoapps/student/views.py
View file @
f1198b5f
...
@@ -45,7 +45,7 @@ from collections import namedtuple
...
@@ -45,7 +45,7 @@ from collections import namedtuple
from
courseware.courses
import
get_courses
,
sort_by_announcement
from
courseware.courses
import
get_courses
,
sort_by_announcement
from
courseware.access
import
has_access
from
courseware.access
import
has_access
from
courseware.models
import
StudentModuleCache
from
courseware.models
import
StudentModuleCache
from
courseware.views
import
get_module_for_descriptor
from
courseware.views
import
get_module_for_descriptor
,
jump_to
from
courseware.module_render
import
get_instance_module
from
courseware.module_render
import
get_instance_module
from
statsd
import
statsd
from
statsd
import
statsd
...
@@ -1138,8 +1138,6 @@ def test_center_login(request):
...
@@ -1138,8 +1138,6 @@ def test_center_login(request):
log
.
error
(
"not able to find exam {} for course ID {} and cand ID {}"
.
format
(
exam_series_code
,
course_id
,
client_candidate_id
))
log
.
error
(
"not able to find exam {} for course ID {} and cand ID {}"
.
format
(
exam_series_code
,
course_id
,
client_candidate_id
))
return
HttpResponseRedirect
(
makeErrorURL
(
error_url
,
"incorrectCandidateTests"
));
return
HttpResponseRedirect
(
makeErrorURL
(
error_url
,
"incorrectCandidateTests"
));
location
=
exam
.
exam_url
location
=
exam
.
exam_url
redirect_url
=
reverse
(
'jump_to'
,
kwargs
=
{
'course_id'
:
course_id
,
'location'
:
location
})
log
.
info
(
"proceeding with test of cand {} on exam {} for course {}: URL = {}"
.
format
(
client_candidate_id
,
exam_series_code
,
course_id
,
location
))
log
.
info
(
"proceeding with test of cand {} on exam {} for course {}: URL = {}"
.
format
(
client_candidate_id
,
exam_series_code
,
course_id
,
location
))
# check if the test has already been taken
# check if the test has already been taken
...
@@ -1195,7 +1193,7 @@ def test_center_login(request):
...
@@ -1195,7 +1193,7 @@ def test_center_login(request):
login
(
request
,
testcenteruser
.
user
)
login
(
request
,
testcenteruser
.
user
)
# And start the test:
# And start the test:
return
redirect
(
redirect_url
)
return
jump_to
(
request
,
course_id
,
location
)
def
_get_news
(
top
=
None
):
def
_get_news
(
top
=
None
):
...
...
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