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
8d15860c
Commit
8d15860c
authored
Dec 19, 2012
by
chrisndodge
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1177 from MITx/bug/dhm/dec12
Bug/dhm/dec12
parents
c1c88a20
08d5ab0a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
cms/djangoapps/contentstore/views.py
+1
-1
cms/djangoapps/models/settings/course_details.py
+4
-2
No files found.
cms/djangoapps/contentstore/views.py
View file @
8d15860c
...
...
@@ -986,7 +986,7 @@ def course_info_updates(request, org, course, provided_id=None):
try
:
return
HttpResponse
(
json
.
dumps
(
update_course_updates
(
location
,
request
.
POST
,
provided_id
)),
mimetype
=
"application/json"
)
except
etree
.
XMLSyntaxError
:
return
HttpResponse
(
"Failed to save: malformed html"
,
status
=
515
,
content_type
=
"text/plain"
)
return
HttpResponse
BadRequest
(
"Failed to save: malformed html"
,
content_type
=
"text/plain"
)
@expect_json
...
...
cms/djangoapps/models/settings/course_details.py
View file @
8d15860c
...
...
@@ -163,8 +163,10 @@ class CourseDetails:
def
recompose_video_tag
(
video_key
):
# TODO should this use a mako template? Of course, my hope is that this is a short-term workaround for the db not storing
# the right thing
result
=
'<iframe width="560" height="315" src="http://www.youtube.com/embed/'
+
\
video_key
+
'?autoplay=1&rel=0" frameborder="0" allowfullscreen=""></iframe>'
result
=
None
if
video_key
:
result
=
'<iframe width="560" height="315" src="http://www.youtube.com/embed/'
+
\
video_key
+
'?autoplay=1&rel=0" frameborder="0" allowfullscreen=""></iframe>'
return
result
...
...
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