Exemplo n.º 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))
Exemplo n.º 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))
Exemplo n.º 3
0
def server_static(filename):
    if not is_allowed_path(filename):
        return HTTPError(404)

    return static_file(filename, root=packages.root)
Exemplo n.º 4
0
def server_static(filename):
    if not is_allowed_path(filename):
        return HTTPError(404)

    return static_file(filename, root=packages.root)