Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for bug Blades/BLD-152 #296

Merged
merged 1 commit into from
Jun 28, 2013

Conversation

valera-rozuvan
Copy link
Contributor

Original problem (including description from https://edx-wiki.atlassian.net/browse/BLD-152 ):

If I remove the youtube attribute of the videoalpha player, I get an error from youtube rather than failing over to the other videos that I have provided.

##

The fix is basically making sure that either an empty string is passed or a correctly formated string of YouTube IDs.

@rocha Please review.

@ghost ghost assigned rocha Jun 28, 2013
'youtube_streams': self.youtube_streams,
# render_template() converts Python None to string 'None'. Front-end expects an empty string, or
# a properly formatted string with YouTube IDs. We will return an empty string instead of 'None'.
'youtube_streams': self.youtube_streams if self.youtube_streams else '',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another alternative is to use self.youtube_streams = xmltree.get('youtube', '') in line 73.

@rocha
Copy link
Contributor

rocha commented Jun 28, 2013

@valera-rozuvan you should have one more person review the PR

@valera-rozuvan
Copy link
Contributor Author

@jmclaus Can you please review?

@auraz
Copy link
Contributor

auraz commented Jun 28, 2013

👍 , as soon as Carlos recommendations will be implemented

@jmclaus
Copy link

jmclaus commented Jun 28, 2013

@valera-rozuvan Only Python code, I shouldn't be a reviewer. @auraz is a better choice.

@rocha
Copy link
Contributor

rocha commented Jun 28, 2013

👍

valera-rozuvan added a commit that referenced this pull request Jun 28, 2013
@valera-rozuvan valera-rozuvan merged commit 938e48e into master Jun 28, 2013
@valera-rozuvan valera-rozuvan deleted the valera/bugfix_allow_no_youtube_attribute branch June 28, 2013 12:08
e-kolpakov referenced this pull request in open-craft/edx-platform Nov 3, 2014
mattdrayer/api-org-migration: Moved api_manager data migration work to o...
Yasui-ks added a commit to nttks/edx-platform that referenced this pull request Oct 2, 2015
…urse

closed course can cancel from dashboard(#244)
Yasui-ks added a commit to nttks/edx-platform that referenced this pull request Oct 6, 2015
…urse

closed course can cancel from dashboard(#244)
(cherry picked from commit efe4b78)

Conflicts:
	common/test/acceptance/tests/lms/test_ga_course_hidden.py
kawaguchi-ks added a commit to nttks/edx-platform that referenced this pull request Oct 6, 2015
Merge pull request openedx#296 from Yasui-ks/develop/cypress/closedcourse
Sujeet1379 pushed a commit to chandrudev/edx-platform that referenced this pull request Nov 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants