__init__.py 文件源码

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

项目:ShelbySearch 作者: Agentscreech 项目源码 文件源码
def get_app(self, reference_app=None):
        """Helper method that implements the logic to look up an
        application."""

        if reference_app is not None:
            return reference_app

        if current_app:
            return current_app

        if self.app is not None:
            return self.app

        raise RuntimeError(
            'application not registered on db instance and no application'
            'bound to current context'
        )
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号