From 8159e861415c58977c69e69827ecba64c95d909b Mon Sep 17 00:00:00 2001 From: Peter Fogg Date: Mon, 17 Jun 2013 11:53:27 -0400 Subject: [PATCH] Many changes to finish up PR. To wit: -- Changed docstrings to use double quote. -- More consistent naming for youtube IDs (normal_speed_id -> youtube_id_1_0). -- Formatting changes for readability. -- Updated test XML to expect JSON-encoded strings; prevents tests from spuriously failing. --- .../lib/xmodule/xmodule/js/fixtures/video.html | 2 +- .../xmodule/js/src/video/display.coffee | 4 ++-- common/lib/xmodule/xmodule/video_module.py | 18 +++++++++++++----- .../Administrivia_and_Circuit_Elements.xml | 8 ++++---- common/test/data/full/vertical/vertical_58.xml | 2 +- common/test/data/full/vertical/vertical_89.xml | 2 +- common/test/data/full/vertical/vertical_94.xml | 2 +- common/test/data/full/vertical/vertical_98.xml | 2 +- common/test/data/full/video/welcome.xml | 2 +- common/test/data/simple/course.xml | 8 ++++---- .../course/2012_Fall.xml | 4 ++-- .../data/test_start_date/course/2012_Fall.xml | 4 ++-- common/test/data/toy/chapter/secret/magic.xml | 2 +- common/test/data/toy/course/2012_Fall.xml | 8 ++++---- .../data/two_toys/video/Video_Resources.xml | 2 +- lms/templates/video.html | 8 ++++---- 16 files changed, 43 insertions(+), 35 deletions(-) diff --git a/common/lib/xmodule/xmodule/js/fixtures/video.html b/common/lib/xmodule/xmodule/js/fixtures/video.html index adcc31a2c8..1b27255b1e 100644 --- a/common/lib/xmodule/xmodule/js/fixtures/video.html +++ b/common/lib/xmodule/xmodule/js/fixtures/video.html @@ -3,7 +3,7 @@
-%elif settings.MITX_FEATURES.get('USE_YOUTUBE_OBJECT_API') and normal_speed_video_id: +%elif settings.MITX_FEATURES.get('USE_YOUTUBE_OBJECT_API') and youtube_id_1_0: + value="https://www.youtube.com/v/${youtube_id_1_0}?version=3&autoplay=1&rel=0"> - @@ -35,7 +35,7 @@