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))
def server_static(filename): if not is_allowed_path(filename): return HTTPError(404) return static_file(filename, root=packages.root)