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
03de84ec
Commit
03de84ec
authored
Sep 09, 2013
by
Alexander Kryklia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix
parent
bd6fed83
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
common/lib/xmodule/xmodule/lti_module.py
+2
-2
lms/djangoapps/courseware/features/lti.py
+2
-2
No files found.
common/lib/xmodule/xmodule/lti_module.py
View file @
03de84ec
...
...
@@ -143,7 +143,7 @@ class LTIModule(LTIFields, XModule):
try
:
lti_id
,
key
,
secret
=
lti_passport
.
split
(
':'
)
except
ValueError
:
raise
Exception
(
'Could not parse LTI passport: {0!r}.
\
raise
LTIError
(
'Could not parse LTI passport: {0!r}.
\
Should be "id:key:secret" string.'
.
format
(
lti_passport
))
if
lti_id
==
self
.
lti_id
:
client_key
,
client_secret
=
key
,
secret
...
...
@@ -155,7 +155,7 @@ class LTIModule(LTIFields, XModule):
try
:
param_name
,
param_value
=
custom_parameter
.
split
(
'='
,
1
)
except
ValueError
:
raise
Exception
(
'Could not parse custom parameter: {0!r}.
\
raise
LTIError
(
'Could not parse custom parameter: {0!r}.
\
Should be "x=y" string.'
.
format
(
custom_parameter
))
# LTI specs: 'custom_' should be prepended before each custom parameter
...
...
lms/djangoapps/courseware/features/lti.py
View file @
03de84ec
...
...
@@ -110,7 +110,7 @@ def add_correct_lti_to_course(_step):
section_name
=
chapter_name
path
=
"/courses/{org}/{num}/{name}/courseware/{chapter}/{section}"
.
format
(
org
=
course
.
org
,
num
=
course
.
num
,
num
=
course
.
num
ber
,
name
=
course
.
display_name
.
replace
(
' '
,
'_'
),
chapter
=
chapter_name
,
section
=
section_name
)
...
...
@@ -137,7 +137,7 @@ def add_incorrect_lti_to_course(_step):
section_name
=
chapter_name
path
=
"/courses/{org}/{num}/{name}/courseware/{chapter}/{section}"
.
format
(
org
=
course
.
org
,
num
=
course
.
num
,
num
=
course
.
num
ber
,
name
=
course
.
display_name
.
replace
(
' '
,
'_'
),
chapter
=
chapter_name
,
section
=
section_name
)
...
...
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