Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
c351c3da
Commit
c351c3da
authored
Oct 23, 2013
by
Alexander Kryklia
Committed by
polesye
Oct 23, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix typos.
parent
e902ff65
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
common/lib/xmodule/xmodule/fields.py
+2
-2
No files found.
common/lib/xmodule/xmodule/fields.py
View file @
c351c3da
...
@@ -126,7 +126,7 @@ class RelativeTime(Field):
...
@@ -126,7 +126,7 @@ class RelativeTime(Field):
should be python datetime.timedelta object, to be consistent with
should be python datetime.timedelta object, to be consistent with
common time representation.
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),
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
and also it is used in frond-end studio editor of video module as format
for start and end time fields.
for start and end time fields.
...
@@ -162,7 +162,7 @@ class RelativeTime(Field):
...
@@ -162,7 +162,7 @@ class RelativeTime(Field):
def
from_json
(
self
,
value
):
def
from_json
(
self
,
value
):
"""
"""
Convert value in 'HH:MM:SS' format to datetime.timedelta.
Convert value i
s i
n 'HH:MM:SS' format to datetime.timedelta.
If not value, returns 0.
If not value, returns 0.
If value is float (backward compatibility issue), convert to timedelta.
If value is float (backward compatibility issue), convert to timedelta.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment