Skip to content

Commit

Permalink
Merge branch 'dev' into demo
Browse files Browse the repository at this point in the history
* dev:
  Bug/settings page studio (#103)
  Fix saving playback progress by correctly reading it from localStorage (#102)
  • Loading branch information
z4y4ts committed Feb 6, 2017
2 parents 23010ec + d934373 commit 41c8c68
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions video_xblock/backends/vimeo.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,14 @@ def download_default_transcript(self, url): # pylint: disable=unused-argument
return u''

@staticmethod
def customize_xblock_fields_display(editable_fields): # pylint: disable=unused-argument
def customize_xblock_fields_display(editable_fields):
"""
Customises display of studio editor fields per a video platform.
E.g. 'account_id' should be displayed for Brightcove only.
Returns:
client_token_help_message (str)
editable_fields (tuple)
"""
return '', ()
message = 'This field is to be disabled.'
editable_fields = list(editable_fields)
editable_fields.remove('account_id')
editable_fields.remove('player_id')
editable_fields.remove('token')
customised_editable_fields = tuple(editable_fields)
return message, customised_editable_fields

0 comments on commit 41c8c68

Please sign in to comment.