Hello,
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".
Here is my code:
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")
Any ideas what I am missing here?
Best regards,
Christian
--
You received this message because you are subscribed to the Google Groups
"General Open edX discussion" group.
To view this discussion on the web visit
https://groups.google.com/d/msgid/edx-code/93c3fa32-4f34-4c77-87df-1da1af38e2a6%40googlegroups.com.