Did I find the right examples for you? yes no

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)

        def resolveUrl(url, responding_path):
    if url.startswith("/"):
        #return url
        pass
    else:
        # relative path
        url = "/"+url
        if responding_path:
            directory_path = responding_path[:-1]
        else:
            directory_path = []
        prefix = "/".join(directory_path)
        if prefix:
            url = "/%s%s" % (prefix, url)
        #return url
    while url.startswith("//"):
        url = url[1:]
    return url
        


src/w/h/whiff-1.1/whiff/resolver.py   whiff(Download)
        relative_url = env[whiffenv.RESPONDING_PATH]
    root = env[whiffenv.ROOT]
    absurl = urlcomponent.resolveUrl(url, relative_url)
    env["PATH_INFO"] = ""
    #pr "CALLURL RESETTING SCRIPT NAME", (env.get("SCRIPT_NAME"), absurl)