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

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

    return static_file(filename, root=packages.root)