wsgi.py 文件源码

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

项目:glare 作者: openstack 项目源码 文件源码
def configure(self, old_conf=None, has_changed=None):
        """Apply configuration settings

        :param old_conf: Cached old configuration settings (if any)
        :param has_changed: callable to determine if a parameter has changed
        """
        eventlet.wsgi.MAX_HEADER_LINE = CONF.max_header_line
        self.client_socket_timeout = CONF.client_socket_timeout or None

        # determine if we need to reload artifact type definitions
        if old_conf is not None and (
                has_changed('enabled_artifact_types') or
                has_changed('custom_artifact_types_modules')):
            from glare import engine
            engine.Engine.registry.reset_registry()
            engine.Engine.registry.register_all_artifacts()

        self.configure_socket(old_conf, has_changed)
        if self.initialize_glance_store:
            utils.initialize_glance_store()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号