From 56f60e06e4aed12d6ce48713dfaa296d3833a888 Mon Sep 17 00:00:00 2001 From: Lyla Fischer Date: Mon, 13 May 2013 08:14:54 -0400 Subject: [PATCH] changed 'from' and 'to' to 'start_time' and 'end_time' --- common/lib/xmodule/xmodule/videoalpha_module.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/lib/xmodule/xmodule/videoalpha_module.py b/common/lib/xmodule/xmodule/videoalpha_module.py index 6754f8f664..83d0b4badd 100644 --- a/common/lib/xmodule/xmodule/videoalpha_module.py +++ b/common/lib/xmodule/xmodule/videoalpha_module.py @@ -93,7 +93,7 @@ class VideoAlphaModule(VideoAlphaFields, XModule): return result def _get_timeframe(self, xmltree): - """ Converts 'from' and 'to' parameters in video tag to seconds. + """ Converts 'start_time' and 'end_time' parameters in video tag to seconds. If there are no parameters, returns empty string. """ def parse_time(s): @@ -107,7 +107,7 @@ class VideoAlphaModule(VideoAlphaFields, XModule): minutes=x.tm_min, seconds=x.tm_sec).total_seconds() - return parse_time(xmltree.get('from')), parse_time(xmltree.get('to')) + return parse_time(xmltree.get('start_time')), parse_time(xmltree.get('end_time')) def handle_ajax(self, dispatch, get): """Handle ajax calls to this video.