Commit 787545c8 by Alexander Kryklia

Renames LTIs to lti_passports.

parent 7b637d49
......@@ -153,7 +153,7 @@ class TextbookList(List):
class CourseFields(object):
LTIs = List(help="LTI tools passports as id:client_key:client_secret", scope=Scope.settings)
lti_passports = 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)
......
......@@ -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.LTIs:
for lti_passport in course.lti_passports:
try:
lti_id, key, secret = lti_passport.split(':')
except ValueError:
......
......@@ -71,7 +71,7 @@ def incorrect_lti_is_rendered(_step):
def set_correct_lti_passport(_step):
coursenum = 'test_course'
metadata = {
'LTIs': ["correct_lti_id:{}:{}".format(
'lti_passports': ["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 = {
'LTIs': ["test_lti_id:{}:{}".format(
'lti_passports': ["test_lti_id:{}:{}".format(
world.lti_server.oauth_settings['client_key'],
"incorrect_lti_secret_key"
)]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment