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
716da9c6
Commit
716da9c6
authored
Jun 11, 2013
by
Peter Fogg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Convert Floats to StringyFloats.
parent
3159c949
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
common/lib/xmodule/xmodule/video_module.py
+4
-3
No files found.
common/lib/xmodule/xmodule/video_module.py
View file @
716da9c6
...
@@ -12,7 +12,8 @@ from django.http import Http404
...
@@ -12,7 +12,8 @@ from django.http import Http404
from
xmodule.x_module
import
XModule
from
xmodule.x_module
import
XModule
from
xmodule.raw_module
import
RawDescriptor
from
xmodule.raw_module
import
RawDescriptor
from
xmodule.editing_module
import
MetadataOnlyEditingDescriptor
from
xmodule.editing_module
import
MetadataOnlyEditingDescriptor
from
xblock.core
import
Integer
,
Scope
,
String
,
Boolean
,
Float
from
xblock.core
import
Integer
,
Scope
,
String
,
Boolean
from
fields
import
StringyFloat
log
=
logging
.
getLogger
(
__name__
)
log
=
logging
.
getLogger
(
__name__
)
...
@@ -25,8 +26,8 @@ class VideoFields(object):
...
@@ -25,8 +26,8 @@ class VideoFields(object):
youtube_id_0_75
=
String
(
help
=
"Youtube ID for .75x speed video"
,
display_name
=
".75x"
,
scope
=
Scope
.
settings
,
default
=
"JMD_ifUUfsU"
)
youtube_id_0_75
=
String
(
help
=
"Youtube ID for .75x speed video"
,
display_name
=
".75x"
,
scope
=
Scope
.
settings
,
default
=
"JMD_ifUUfsU"
)
youtube_id_1_25
=
String
(
help
=
"Youtube ID for 1.25x speed video"
,
display_name
=
"1.25x"
,
scope
=
Scope
.
settings
,
default
=
"AKqURZnYqpk"
)
youtube_id_1_25
=
String
(
help
=
"Youtube ID for 1.25x speed video"
,
display_name
=
"1.25x"
,
scope
=
Scope
.
settings
,
default
=
"AKqURZnYqpk"
)
youtube_id_1_5
=
String
(
help
=
"Youtube ID for 1.5x speed video"
,
display_name
=
"1.5x"
,
scope
=
Scope
.
settings
,
default
=
"DYpADpL7jAY"
)
youtube_id_1_5
=
String
(
help
=
"Youtube ID for 1.5x speed video"
,
display_name
=
"1.5x"
,
scope
=
Scope
.
settings
,
default
=
"DYpADpL7jAY"
)
start_time
=
Float
(
help
=
"Time the video starts"
,
display_name
=
"Start Time"
,
scope
=
Scope
.
settings
,
default
=
0.0
)
start_time
=
Stringy
Float
(
help
=
"Time the video starts"
,
display_name
=
"Start Time"
,
scope
=
Scope
.
settings
,
default
=
0.0
)
end_time
=
Float
(
help
=
"Time the video ends"
,
display_name
=
"End Time"
,
scope
=
Scope
.
settings
,
default
=
0.0
)
end_time
=
Stringy
Float
(
help
=
"Time the video ends"
,
display_name
=
"End Time"
,
scope
=
Scope
.
settings
,
default
=
0.0
)
source
=
String
(
help
=
"Source to download video"
,
display_name
=
"Source"
,
scope
=
Scope
.
settings
,
default
=
""
)
source
=
String
(
help
=
"Source to download video"
,
display_name
=
"Source"
,
scope
=
Scope
.
settings
,
default
=
""
)
track
=
String
(
help
=
"Source to download subtitle track"
,
display_name
=
"Track"
,
scope
=
Scope
.
settings
,
default
=
""
)
track
=
String
(
help
=
"Source to download subtitle track"
,
display_name
=
"Track"
,
scope
=
Scope
.
settings
,
default
=
""
)
...
...
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