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
bd6fed83
Commit
bd6fed83
authored
Sep 09, 2013
by
Alexander Kryklia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix.
parent
ef4b7b9b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
12 deletions
+18
-12
lms/djangoapps/courseware/features/lti.py
+18
-12
No files found.
lms/djangoapps/courseware/features/lti.py
View file @
bd6fed83
...
...
@@ -104,15 +104,18 @@ def add_correct_lti_to_course(_step):
'launch_url'
:
world
.
lti_server
.
oauth_settings
[
'lti_base'
]
+
world
.
lti_server
.
oauth_settings
[
'lti_endpoint'
]
}
)
course
=
world
.
scenario_dict
[
"COURSE"
]
chapter_name
=
world
.
scenario_dict
[
'SECTION'
]
.
display_name
.
replace
(
" "
,
"_"
)
section_name
=
chapter_name
url
=
django_url
(
'/courses/
%
s/
%
s/
%
s/courseware/
%
s/
%
s'
%
(
world
.
scenario_dict
[
'COURSE'
]
.
org
,
world
.
scenario_dict
[
'COURSE'
]
.
number
,
world
.
scenario_dict
[
'COURSE'
]
.
display_name
.
replace
(
' '
,
'_'
),
chapter_name
,
section_name
,)
)
path
=
"/courses/{org}/{num}/{name}/courseware/{chapter}/{section}"
.
format
(
org
=
course
.
org
,
num
=
course
.
num
,
name
=
course
.
display_name
.
replace
(
' '
,
'_'
),
chapter
=
chapter_name
,
section
=
section_name
)
url
=
django_url
(
path
)
world
.
browser
.
visit
(
url
)
...
...
@@ -128,15 +131,18 @@ def add_incorrect_lti_to_course(_step):
'lti_url'
:
world
.
lti_server
.
oauth_settings
[
'lti_base'
]
+
world
.
lti_server
.
oauth_settings
[
'lti_endpoint'
]
}
)
course
=
world
.
scenario_dict
[
"COURSE"
]
chapter_name
=
world
.
scenario_dict
[
'SECTION'
]
.
display_name
.
replace
(
" "
,
"_"
)
section_name
=
chapter_name
url
=
django_url
(
'/courses/
%
s/
%
s/
%
s/courseware/
%
s/
%
s'
%
(
world
.
scenario_dict
[
'COURSE'
]
.
org
,
world
.
scenario_dict
[
'COURSE'
]
.
number
,
world
.
scenario_dict
[
'COURSE'
]
.
display_name
.
replace
(
' '
,
'_'
),
chapter_name
,
section_name
,)
)
path
=
"/courses/{org}/{num}/{name}/courseware/{chapter}/{section}"
.
format
(
org
=
course
.
org
,
num
=
course
.
num
,
name
=
course
.
display_name
.
replace
(
' '
,
'_'
),
chapter
=
chapter_name
,
section
=
section_name
)
url
=
django_url
(
path
)
world
.
browser
.
visit
(
url
)
...
...
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