I am developing an XBlock. The student_view works so far, but I want a different one for the studio.
As far as I understand, the author_view should be used if available. But it doesn't. I created a little test code. In the studio it just prints "Student view".
from xblock.core import XBlock
from xblock.fragment import Fragment
class InlineToolboxXBlock(XBlock):
def student_view(self, context=None):
return Fragment(u"Student View")
def studio_view(self, context=None):
return Fragment(u"Studio View")
def author_view(self, context=None):
return Fragment(u"Author View")