Commit a3b6ef8b by Calen Pennington

Rename variables to make type clearer

parent 4df122a9
...@@ -81,7 +81,7 @@ class TextAnnotationModule(AnnotatableFields, XModule): ...@@ -81,7 +81,7 @@ class TextAnnotationModule(AnnotatableFields, XModule):
def get_html(self): def get_html(self):
""" Renders parameters to template. """ """ Renders parameters to template. """
context = { context = {
'course_id': self.runtime.course_id, 'course_key': self.runtime.course_id,
'display_name': self.display_name_with_default, 'display_name': self.display_name_with_default,
'tag': self.tags, 'tag': self.tags,
'source': self.source, 'source': self.source,
......
...@@ -149,7 +149,7 @@ class VideoAnnotationModule(AnnotatableFields, XModule): ...@@ -149,7 +149,7 @@ class VideoAnnotationModule(AnnotatableFields, XModule):
extension = self._get_extension(self.sourceurl) extension = self._get_extension(self.sourceurl)
context = { context = {
'course_id': self.runtime.course_id, 'course_key': self.runtime.course_id,
'display_name': self.display_name_with_default, 'display_name': self.display_name_with_default,
'instructions_html': self.instructions, 'instructions_html': self.instructions,
'sourceUrl': self.sourceurl, 'sourceUrl': self.sourceurl,
......
...@@ -112,7 +112,7 @@ ...@@ -112,7 +112,7 @@
}, },
}, },
auth: { 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: { store: {
// The endpoint of the store on your server. // The endpoint of the store on your server.
......
...@@ -116,7 +116,7 @@ ...@@ -116,7 +116,7 @@
}, },
}, },
auth: { 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: { store: {
// The endpoint of the store on your server. // The endpoint of the store on your server.
......
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