From c351c3dae78a2a864e6caba885c8c85332e18b29 Mon Sep 17 00:00:00 2001 From: Alexander Kryklia Date: Wed, 23 Oct 2013 10:52:33 +0300 Subject: [PATCH] Fix typos. --- common/lib/xmodule/xmodule/fields.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/lib/xmodule/xmodule/fields.py b/common/lib/xmodule/xmodule/fields.py index f29b491142..7eefd06086 100644 --- a/common/lib/xmodule/xmodule/fields.py +++ b/common/lib/xmodule/xmodule/fields.py @@ -126,7 +126,7 @@ class RelativeTime(Field): should be python datetime.timedelta object, to be consistent with common time representation. - At the same time, serialized representation should be"HH:MM:SS" + At the same time, serialized representation should be "HH:MM:SS" This format is convenient to use in XML (and it is used now), and also it is used in frond-end studio editor of video module as format for start and end time fields. @@ -162,7 +162,7 @@ class RelativeTime(Field): def from_json(self, value): """ - Convert value in 'HH:MM:SS' format to datetime.timedelta. + Convert value is in 'HH:MM:SS' format to datetime.timedelta. If not value, returns 0. If value is float (backward compatibility issue), convert to timedelta.