views.py 文件源码

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

项目:eea.corpus 作者: eea 项目源码 文件源码
def corpus(self):
        """ Return a corpus based on environment.

        It will try to return it from cache, otherwise load it from disk.
        If corpus hasn't been extracted from the document, it will redirect to
        a corpus creation tool.
        """

        corpus = get_corpus(self.request)
        if corpus is None:
            raise exc.HTTPNotFound()
        return corpus
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号