From a3b6ef8baed7f452b7326ae12164f701c63fe50d Mon Sep 17 00:00:00 2001 From: Calen Pennington Date: Mon, 19 May 2014 10:58:38 -0400 Subject: [PATCH] Rename variables to make type clearer --- common/lib/xmodule/xmodule/textannotation_module.py | 2 +- common/lib/xmodule/xmodule/videoannotation_module.py | 2 +- lms/templates/textannotation.html | 2 +- lms/templates/videoannotation.html | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/common/lib/xmodule/xmodule/textannotation_module.py b/common/lib/xmodule/xmodule/textannotation_module.py index fa183dab51..93ba1e719b 100644 --- a/common/lib/xmodule/xmodule/textannotation_module.py +++ b/common/lib/xmodule/xmodule/textannotation_module.py @@ -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, diff --git a/common/lib/xmodule/xmodule/videoannotation_module.py b/common/lib/xmodule/xmodule/videoannotation_module.py index 3bd0607044..5f31011f00 100644 --- a/common/lib/xmodule/xmodule/videoannotation_module.py +++ b/common/lib/xmodule/xmodule/videoannotation_module.py @@ -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, diff --git a/lms/templates/textannotation.html b/lms/templates/textannotation.html index 5d2a3c48ff..f8a8c33314 100644 --- a/lms/templates/textannotation.html +++ b/lms/templates/textannotation.html @@ -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. diff --git a/lms/templates/videoannotation.html b/lms/templates/videoannotation.html index 589b24af19..2fcd011ce6 100644 --- a/lms/templates/videoannotation.html +++ b/lms/templates/videoannotation.html @@ -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.