本文整理汇总了Python中xmodule.raw_module.RawDescriptor类的典型用法代码示例。如果您正苦于以下问题:Python RawDescriptor类的具体用法?Python RawDescriptor怎么用?Python RawDescriptor使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了RawDescriptor类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: get_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
示例2: get_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
示例3: get_context
def get_context(self):
_context = RawDescriptor.get_context(self)
_context.update({'markdown': self.markdown,
'enable_markdown': self.markdown is not None})
return _context