示例#1
0
def server_static(filename):
    if not is_allowed_path(filename):
        return HTTPError(404)

    # by Felix Get rid of static_file, use SAE storage
    #return static_file(filename, root=packages.root)
    return redirect(packages.url(filename))
示例#2
0
def server_static(filename):
    if not is_allowed_path(filename):
        return HTTPError(404)

    # by Felix Get rid of static_file, use SAE storage
    #return static_file(filename, root=packages.root)
    return redirect(packages.url(filename))
示例#3
0
文件: _app.py 项目: cwood/pypiserver
def server_static(filename):
    if not is_allowed_path(filename):
        return HTTPError(404)

    return static_file(filename, root=packages.root)
示例#4
0
文件: _app.py 项目: gisce/pypiserver
def server_static(filename):
    if not is_allowed_path(filename):
        return HTTPError(404)

    return static_file(filename, root=packages.root)