root_page.py 文件源码

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

项目:sawtooth-validator 作者: hyperledger-archives 项目源码 文件源码
def __init__(self, validator, static_dir=None):
        Resource.__init__(self)
        self.validator = validator

        if static_dir is not None and os.path.exists(static_dir):
            for f in os.listdir(static_dir):
                self.putChild(f, File(os.path.join(static_dir, f)))

        self.putChild('block', BlockPage(validator))
        self.putChild('statistics', StatisticsPage(validator))
        self.putChild('store', StorePage(validator))
        self.putChild('status', StatusPage(validator))
        self.putChild('transaction', TransactionPage(validator))

        self.putChild('forward', ForwardPage(validator))
        self.putChild('command', CommandPage(validator))

        validator.web_thread_pool.start()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号