aliyundocxblock/aliyundocxblock.py
def studio_view(self, context=None):
        """
        The secondary view of the XBlock, shown to teachers
        when editing the XBlock.
        """
        context = {
            'display_name': self.display_name,
            'url': self.url,
            'allow_download': self.allow_download,
            'source_text': self.source_text,
        }
        html = self.render_template('templates/html/doc_edit.html', context)
        frag = Fragment(html)
        frag.add_javascript(self.resource_string("static/js/src/doc_edit.js"))
        frag.initialize_js('docXBlockInitEdit')
        return frag

        The secondary view of the XBlock, shown to teachers
        when editing the XBlock.
        
The secondary view of the XBlock, shown to teachers
when editing the XBlock.
The secondary view of the XBlock shown to teachers when editing the XBlock .
def studio_view(self, context=None):
        context = {
            'display_name': self.display_name,
            'url': self.url,
            'allow_download': self.allow_download,
            'source_text': self.source_text,
        }
        html = self.render_template('templates/html/doc_edit.html', context)
        frag = Fragment(html)
        frag.add_javascript(self.resource_string("static/js/src/doc_edit.js"))
        frag.initialize_js('docXBlockInitEdit')
        return frag
def studio_view ( self , context = None ) : context = { 'display_name' : self . display_name , 'url' : self . url , 'allow_download' : self . allow_download , 'source_text' : self . source_text , } html = self . render_template ( 'templates/html/doc_edit.html' , context ) frag = Fragment ( html ) frag . add_javascript ( self . resource_string ( "static/js/src/doc_edit.js" ) ) frag . initialize_js ( 'docXBlockInitEdit' ) return frag
The secondary view of the XBlock, shown to teachers
when editing the XBlock.
The secondary view of the XBlock shown to teachers when editing the XBlock .
"""
        The secondary view of the XBlock, shown to teachers
        when editing the XBlock.
        """
self
context