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
42b332ab
Commit
42b332ab
authored
Feb 13, 2013
by
Vasyl Nakvasiuk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove unnecessary code
parent
2a05fdd4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
11 deletions
+0
-11
common/lib/xmodule/xmodule/videoalpha_module.py
+0
-11
No files found.
common/lib/xmodule/xmodule/videoalpha_module.py
View file @
42b332ab
...
@@ -111,16 +111,6 @@ class VideoAlphaModule(XModule):
...
@@ -111,16 +111,6 @@ class VideoAlphaModule(XModule):
return
json
.
dumps
({
'success'
:
True
})
return
json
.
dumps
({
'success'
:
True
})
raise
Http404
()
raise
Http404
()
def
get_progress
(
self
):
''' TODO (vshnayder): Get and save duration of youtube video, then return
fraction watched.
(Be careful to notice when video link changes and update)
For now, we have no way of knowing if the video has even been watched, so
just return None.
'''
return
None
def
get_instance_state
(
self
):
def
get_instance_state
(
self
):
#log.debug(u"STATE POSITION {0}".format(self.position))
#log.debug(u"STATE POSITION {0}".format(self.position))
return
json
.
dumps
({
'position'
:
self
.
position
})
return
json
.
dumps
({
'position'
:
self
.
position
})
...
@@ -139,7 +129,6 @@ class VideoAlphaModule(XModule):
...
@@ -139,7 +129,6 @@ class VideoAlphaModule(XModule):
return
self
.
system
.
render_template
(
'videoalpha.html'
,
{
return
self
.
system
.
render_template
(
'videoalpha.html'
,
{
'streams'
:
self
.
videoalpha_list
(),
'streams'
:
self
.
videoalpha_list
(),
'id'
:
self
.
location
.
html_id
(),
'id'
:
self
.
location
.
html_id
(),
'position'
:
self
.
position
,
'sub'
:
self
.
sub
,
'sub'
:
self
.
sub
,
'sources'
:
self
.
sources
,
'sources'
:
self
.
sources
,
'track'
:
self
.
track
,
'track'
:
self
.
track
,
...
...
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