Beispiel #1
0
def urls():
    urls = [
        "/api/v1", api_urls.app(),
        "/api", api_urls.app(),
        "", webui_urls.app()
    ]
    if settings.AUTH['AUTHENTICATION_METHOD'] == 'fake':
        urls = ["/keystone", fake_keystone_urls.app()] + urls
    return urls
Beispiel #2
0
def urls():
    urls = [
        "/api/v1",
        api_urls.app(), "/api",
        api_urls.app(), "",
        webui_urls.app()
    ]
    if settings.AUTH['AUTHENTICATION_METHOD'] == 'fake':
        urls = ["/keystone", fake_keystone_urls.app()] + urls
    return urls
Beispiel #3
0
def urls():
    urls = [
        #对于v1及/api的均由api_urls.app来处理
        "/api/v1",
        api_urls.app(),
        "/api",
        api_urls.app(),
        "",
        webui_urls.app()
    ]
    #fake情况下,/keystone的地址自已处理
    if settings.AUTH['AUTHENTICATION_METHOD'] == 'fake':
        urls = ["/keystone", fake_keystone_urls.app()] + urls
    return urls
Beispiel #4
0
def urls():
    return (
        "/api/v1", api_urls.app(),
        "/api", api_urls.app(),
        "", webui_urls.app()
    )