コード例 #1
0
def root_app_factory(loader, global_conf, **local_conf):
    """Freezer can manage multiple versions, but
    only launch one version at a time, Otherwise it is
     easy to cause confusion. If there is a demand in the future
    for a single freezer-api instance to support both v1 and v2 at a time,
    you need to add a new patch to implement it.
    """
    if CONF.enable_v1_api and '/v1' in local_conf:
        del local_conf['/v2']
    else:
        del local_conf['/v1']
    return urlmap.urlmap_factory(loader, global_conf, **local_conf)
コード例 #2
0
ファイル: __init__.py プロジェクト: venkyleo22/vdi-broker
def root_app_factory(loader, global_conf, **local_conf):
    return urlmap.urlmap_factory(loader, global_conf, **local_conf)
コード例 #3
0
ファイル: __init__.py プロジェクト: gergo-debreczeni/coriolis
def root_app_factory(loader, global_conf, **local_conf):
    return urlmap.urlmap_factory(loader, global_conf, **local_conf)
コード例 #4
0
ファイル: api.py プロジェクト: vnogin/freezer-api
def root_app_factory(loader, global_conf, **local_conf):
    """Allows freezer to launch multiple applications at a time.
    It will allow freezer to manage multiple versions.
    """
    return urlmap.urlmap_factory(loader, global_conf, **local_conf)