当前位置: 首页>>代码示例>>Python>>正文


Python raw_module.RawDescriptor类代码示例

本文整理汇总了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
开发者ID:pelikanchik,项目名称:edx-platform,代码行数:8,代码来源:capa_module.py

示例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
开发者ID:EduPepperPDTesting,项目名称:pepper2013-testing,代码行数:9,代码来源:combined_open_ended_module.py

示例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
开发者ID:LukeLu1263,项目名称:edx-platform,代码行数:5,代码来源:combined_open_ended_module.py


注:本文中的xmodule.raw_module.RawDescriptor类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。