Commit 56f60e06 by Lyla Fischer Committed by Valera Rozuvan

changed 'from' and 'to' to 'start_time' and 'end_time'

parent d68162f9
...@@ -93,7 +93,7 @@ class VideoAlphaModule(VideoAlphaFields, XModule): ...@@ -93,7 +93,7 @@ class VideoAlphaModule(VideoAlphaFields, XModule):
return result return result
def _get_timeframe(self, xmltree): 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. """ If there are no parameters, returns empty string. """
def parse_time(s): def parse_time(s):
...@@ -107,7 +107,7 @@ class VideoAlphaModule(VideoAlphaFields, XModule): ...@@ -107,7 +107,7 @@ class VideoAlphaModule(VideoAlphaFields, XModule):
minutes=x.tm_min, minutes=x.tm_min,
seconds=x.tm_sec).total_seconds() 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): def handle_ajax(self, dispatch, get):
"""Handle ajax calls to this video. """Handle ajax calls to this video.
......
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