def get_context(self):
     _context = RawDescriptor.get_context(self)
     _context.update({
         'markdown': self.markdown,
         'enable_markdown': self.markdown is not None
     })
     return _context
Exemple #2
0
 def get_context(self):
     _context = RawDescriptor.get_context(self)
     _context.update({
         'markdown': self.markdown,
         'enable_markdown': self.markdown is not None,
         'enable_latex_compiler': self.use_latex_compiler,
     })
     return _context
 def get_context(self):
     _context = RawDescriptor.get_context(self)
     _context.update({
         'markdown': self.markdown,
         'enable_markdown': self.markdown is not None,
         'enable_latex_compiler': self.use_latex_compiler,
     })
     return _context
 def get_context(self):
     _context = RawDescriptor.get_context(self)
     import logging
     log = logging.getLogger("tracking")
     log.debug("markdown===============================\n:"+str(self.markdown)+"\n===========================")
     log.debug("accept_file_upload===============================\n:"+str(self.accept_file_upload)+"\n===========================")
     _context.update({'markdown': self.markdown,
                      'enable_markdown': self.markdown is not None})
     return _context
 def get_context(self):
     _context = RawDescriptor.get_context(self)
     _context.update({
         'markdown':
         self.markdown,
         'enable_markdown':
         self.markdown is not None,
         'enable_latex_compiler':
         self.use_latex_compiler,
         'base_asset_url':
         StaticContent.get_base_url_path_for_course_assets(
             self.location.course_key),
         'course_key':
         self.location.course_key,
     })
     return _context
 def get_context(self):
     _context = RawDescriptor.get_context(self)
     _context.update({'markdown': self.markdown,
                      'enable_markdown': self.markdown is not None})
     return _context