MA-792 Course Blocks and Navigation API (user-specific)

This commit is contained in:
Nimisha Asthagiri
2015-06-05 14:52:02 -04:00
parent 037ef3be77
commit 4921ec48c8
10 changed files with 691 additions and 34 deletions

View File

@@ -755,7 +755,8 @@ class VideoDescriptor(VideoFields, VideoTranscriptsMixin, VideoStudioViewHandler
Returns a JSON representation of the student_view of this XModule.
The contract of the JSON content is between the caller and the particular XModule.
"""
# Honor only_on_web
# If the "only_on_web" field is set on this video, do not return the rest of the video's data
# in this json view, since this video is to be accessed only through its web view."
if self.only_on_web:
return {"only_on_web": True}