root_page.py 文件源码

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

项目:sawtooth-validator 作者: hyperledger-archives 项目源码 文件源码
def getChild(self, name, request):
        out = Resource.getChild(self, name, request)
        LOGGER.warning("%s - %s", request.path, out.__class__.__name__)
        if isinstance(out, NoResource):
            # this matches the pre-existing behavior
            # of accepting any post as a message forward
            components = request.path.split('/')
            while components and components[0] == '':
                components.pop(0)
            LOGGER.warning("%s - %d", components, len(components))
            if len(components) > 0:
                out = ForwardPage(self.validator, components[0])

        return out
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号