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
547dc11c
Commit
547dc11c
authored
Oct 16, 2013
by
polesye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Fix a malformed custom_parameter bug."
This reverts commit 75bdc1eebfd444bf00102b486a881f5776bbc407.
parent
a6a5300b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
common/lib/xmodule/xmodule/lti_module.py
+4
-6
No files found.
common/lib/xmodule/xmodule/lti_module.py
View file @
547dc11c
...
@@ -191,9 +191,8 @@ class LTIModule(LTIFields, XModule):
...
@@ -191,9 +191,8 @@ class LTIModule(LTIFields, XModule):
try
:
try
:
lti_id
,
key
,
secret
=
[
i
.
strip
()
for
i
in
lti_passport
.
split
(
':'
)]
lti_id
,
key
,
secret
=
[
i
.
strip
()
for
i
in
lti_passport
.
split
(
':'
)]
except
ValueError
:
except
ValueError
:
lti_id
=
key
=
secret
=
''
raise
LTIError
(
'Could not parse LTI passport: {0!r}.
\
log
.
error
(
'Could not parse LTI passport: {0!r}.
\
Should be "id:key:secret" string.'
.
format
(
lti_passport
))
Should be "id:key:secret" string.'
.
format
(
lti_passport
))
if
lti_id
==
self
.
lti_id
.
strip
():
if
lti_id
==
self
.
lti_id
.
strip
():
client_key
,
client_secret
=
key
,
secret
client_key
,
client_secret
=
key
,
secret
break
break
...
@@ -204,9 +203,8 @@ Should be "id:key:secret" string.'.format(lti_passport))
...
@@ -204,9 +203,8 @@ Should be "id:key:secret" string.'.format(lti_passport))
try
:
try
:
param_name
,
param_value
=
[
p
.
strip
()
for
p
in
custom_parameter
.
split
(
'='
,
1
)]
param_name
,
param_value
=
[
p
.
strip
()
for
p
in
custom_parameter
.
split
(
'='
,
1
)]
except
ValueError
:
except
ValueError
:
param_name
=
param_value
=
''
raise
LTIError
(
'Could not parse custom parameter: {0!r}.
\
log
.
error
(
'Could not parse custom parameter: {0!r}.
\
Should be "x=y" string.'
.
format
(
custom_parameter
))
Should be "x=y" string.'
.
format
(
custom_parameter
))
if
param_name
not
in
PARAMETERS
:
if
param_name
not
in
PARAMETERS
:
param_name
=
'custom_'
+
param_name
param_name
=
'custom_'
+
param_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