Update annotations modules to use the course_id from the runtime, rather than extracting it from the page

This commit is contained in:
Calen Pennington
2014-05-19 09:37:53 -04:00
parent 2ce6719153
commit 4df122a92e
4 changed files with 28 additions and 32 deletions

View File

@@ -81,6 +81,7 @@ class TextAnnotationModule(AnnotatableFields, XModule):
def get_html(self):
""" Renders parameters to template. """
context = {
'course_id': self.runtime.course_id,
'display_name': self.display_name_with_default,
'tag': self.tags,
'source': self.source,

View File

@@ -149,6 +149,7 @@ class VideoAnnotationModule(AnnotatableFields, XModule):
extension = self._get_extension(self.sourceurl)
context = {
'course_id': self.runtime.course_id,
'display_name': self.display_name_with_default,
'instructions_html': self.instructions,
'sourceUrl': self.sourceurl,