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
787545c8
Commit
787545c8
authored
Sep 06, 2013
by
Alexander Kryklia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renames LTIs to lti_passports.
parent
7b637d49
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
common/lib/xmodule/xmodule/course_module.py
+1
-1
common/lib/xmodule/xmodule/lti_module.py
+1
-1
lms/djangoapps/courseware/features/lti.py
+2
-2
No files found.
common/lib/xmodule/xmodule/course_module.py
View file @
787545c8
...
...
@@ -153,7 +153,7 @@ class TextbookList(List):
class
CourseFields
(
object
):
LTI
s
=
List
(
help
=
"LTI tools passports as id:client_key:client_secret"
,
scope
=
Scope
.
settings
)
lti_passport
s
=
List
(
help
=
"LTI tools passports as id:client_key:client_secret"
,
scope
=
Scope
.
settings
)
textbooks
=
TextbookList
(
help
=
"List of pairs of (title, url) for textbooks used in this course"
,
default
=
[],
scope
=
Scope
.
content
)
wiki_slug
=
String
(
help
=
"Slug that points to the wiki for this course"
,
scope
=
Scope
.
content
)
...
...
common/lib/xmodule/xmodule/lti_module.py
View file @
787545c8
...
...
@@ -137,7 +137,7 @@ class LTIModule(LTIFields, XModule):
course_location
=
CourseDescriptor
.
id_to_location
(
course_id
)
course
=
self
.
descriptor
.
runtime
.
modulestore
.
get_item
(
course_location
)
client_key
,
client_secret
=
''
,
''
for
lti_passport
in
course
.
LTI
s
:
for
lti_passport
in
course
.
lti_passport
s
:
try
:
lti_id
,
key
,
secret
=
lti_passport
.
split
(
':'
)
except
ValueError
:
...
...
lms/djangoapps/courseware/features/lti.py
View file @
787545c8
...
...
@@ -71,7 +71,7 @@ def incorrect_lti_is_rendered(_step):
def
set_correct_lti_passport
(
_step
):
coursenum
=
'test_course'
metadata
=
{
'
LTI
s'
:
[
"correct_lti_id:{}:{}"
.
format
(
'
lti_passport
s'
:
[
"correct_lti_id:{}:{}"
.
format
(
world
.
lti_server
.
oauth_settings
[
'client_key'
],
world
.
lti_server
.
oauth_settings
[
'client_secret'
]
)]
...
...
@@ -83,7 +83,7 @@ def set_correct_lti_passport(_step):
def
set_incorrect_lti_passport
(
_step
):
coursenum
=
'test_course'
metadata
=
{
'
LTI
s'
:
[
"test_lti_id:{}:{}"
.
format
(
'
lti_passport
s'
:
[
"test_lti_id:{}:{}"
.
format
(
world
.
lti_server
.
oauth_settings
[
'client_key'
],
"incorrect_lti_secret_key"
)]
...
...
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