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
1ee1eb69
Commit
1ee1eb69
authored
Oct 18, 2013
by
polesye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix comments.
parent
547dc11c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
common/lib/xmodule/xmodule/lti_module.py
+2
-2
No files found.
common/lib/xmodule/xmodule/lti_module.py
View file @
1ee1eb69
...
...
@@ -8,7 +8,6 @@ http://www.imsglobal.org/LTI/v1p1p1/ltiIMGv1p1p1.html
import
logging
import
oauthlib.oauth1
import
urllib
import
json
from
xmodule.editing_module
import
MetadataOnlyEditingDescriptor
from
xmodule.raw_module
import
EmptyDataRawDescriptor
...
...
@@ -145,7 +144,7 @@ class LTIModule(LTIFields, XModule):
# part of the POST data. These parameters should not be prefixed.
# Likewise, The creator of an LTI link can add custom key/value parameters
# to a launch which are to be included with the launch of the LTI link.
# In this case,
these parameters should be prefixed by 'custom_'
.
# In this case,
we will automatically add `custom_` prefix before this parameters
.
# See http://www.imsglobal.org/LTI/v1p1p1/ltiIMGv1p1p1.html#_Toc316828520
PARAMETERS
=
[
"lti_message_type"
,
...
...
@@ -206,6 +205,7 @@ class LTIModule(LTIFields, XModule):
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, as pointed in link above.
if
param_name
not
in
PARAMETERS
:
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