views.py 文件源码

python
阅读 26 收藏 0 点赞 0 评论 0

项目:airflow 作者: apache-airflow 项目源码 文件源码
def sandbox(self):
        title = "Sandbox Suggested Configuration"
        cfg_loc = conf.AIRFLOW_CONFIG + '.sandbox'
        f = open(cfg_loc, 'r')
        config = f.read()
        f.close()
        code_html = Markup(highlight(
            config,
            lexers.IniLexer(),  # Lexer call
            HtmlFormatter(noclasses=True))
        )
        return self.render(
            'airflow/code.html',
            code_html=code_html, title=title, subtitle=cfg_loc)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号