コード例 #1
0
 def get_context(self):
     _context = MakoTemplateBlockBase.get_context(self)
     _context.update({
         'tabs': self.tabs,
         'html_id': self.location.html_id(),  # element_id
         'data': self.data,
     })
     return _context
コード例 #2
0
 def studio_view(self, _context):
     """
     Return the studio view.
     """
     context = MakoTemplateBlockBase.get_context(self)
     # Add our specific template information (the raw data body)
     context.update({'data': self.data})
     fragment = Fragment(
         self.system.render_template(self.mako_template, context))
     add_webpack_to_fragment(fragment, 'LTIBlockStudio')
     shim_xmodule_js(fragment, self.studio_js_module_name)
     return fragment
コード例 #3
0
ファイル: editing_module.py プロジェクト: jlrivera81/incr-228
 def get_context(self):
     _context = MakoTemplateBlockBase.get_context(self)
     # Add our specific template information (the raw data body)
     _context.update({'data': self.data})
     return _context
コード例 #4
0
 def get_context(self):
     _context = MakoTemplateBlockBase.get_context(self)
     # Add our specific template information (the raw data body)
     _context.update({'data': self.data})
     return _context