Did I find the right examples for you? yes no

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)
make an absolute URL from a relative one, wrt the WSGI environment

        def getAbsoluteUrl(url, environ):
    """make an absolute URL from a relative one, wrt the WSGI environment"""
    uri = wsgiref.util.request_uri(environ, False)
    absoluteUrl = urlparse.urljoin(uri, url)
    return absoluteUrl
        


src/w/h/whiff-1.1/whiff/middleware/EvalPageFunction.py   whiff(Download)
        jsArray = misc.jsListFromString(pageContent, linebreak=linebreak)
        # make the url an absolute url
        absoluteUrl = misc.getAbsoluteUrl(url, env)
        #pr "translated absolute url", (url, absoluteUrl)
        D = {}