Rename variables to make type clearer
This commit is contained in:
@@ -81,7 +81,7 @@ class TextAnnotationModule(AnnotatableFields, XModule):
|
||||
def get_html(self):
|
||||
""" Renders parameters to template. """
|
||||
context = {
|
||||
'course_id': self.runtime.course_id,
|
||||
'course_key': self.runtime.course_id,
|
||||
'display_name': self.display_name_with_default,
|
||||
'tag': self.tags,
|
||||
'source': self.source,
|
||||
|
||||
@@ -149,7 +149,7 @@ class VideoAnnotationModule(AnnotatableFields, XModule):
|
||||
extension = self._get_extension(self.sourceurl)
|
||||
|
||||
context = {
|
||||
'course_id': self.runtime.course_id,
|
||||
'course_key': self.runtime.course_id,
|
||||
'display_name': self.display_name_with_default,
|
||||
'instructions_html': self.instructions,
|
||||
'sourceUrl': self.sourceurl,
|
||||
|
||||
@@ -112,7 +112,7 @@
|
||||
},
|
||||
},
|
||||
auth: {
|
||||
tokenUrl: location.protocol+'//'+location.host+"/token?course_id=${course_id.to_deprecated_string()}"
|
||||
tokenUrl: location.protocol+'//'+location.host+"/token?course_id=${course_key.to_deprecated_string()}"
|
||||
},
|
||||
store: {
|
||||
// The endpoint of the store on your server.
|
||||
|
||||
@@ -116,7 +116,7 @@
|
||||
},
|
||||
},
|
||||
auth: {
|
||||
tokenUrl: location.protocol+'//'+location.host+"/token?course_id=${course_id.to_deprecated_string()}"
|
||||
tokenUrl: location.protocol+'//'+location.host+"/token?course_id=${course_key.to_deprecated_string()}"
|
||||
},
|
||||
store: {
|
||||
// The endpoint of the store on your server.
|
||||
|
||||
Reference in New Issue
Block a user