Allura/allura/lib/helpers.py
def absurl(url):
    """
    Given a root-relative URL, return a full URL including protocol and host
    """
    if url is None:
        return None
    if '://' in url:
        return url
    try:
        # try request first, so we can get proper http/https value
        host = request.host_url
    except TypeError:
        # for tests, etc
        host = tg.config['base_url'].rstrip('/')
    return host + url

    Given a root-relative URL, return a full URL including protocol and host
    
Given a root-relative URL, return a full URL including protocol and host
Given a root - relative URL return a full URL including protocol and host
def absurl(url):
    if url is None:
        return None
    if '://' in url:
        return url
    try:
        host = request.host_url
    except TypeError:
        host = tg.config['base_url'].rstrip('/')
    return host + url
def absurl ( url ) : if url is None : return None if '://' in url : return url try : host = request . host_url except TypeError : host = tg . config [ 'base_url' ] . rstrip ( '/' ) return host + url
Given a root-relative URL, return a full URL including protocol and host
Given a root - relative URL return a full URL including protocol and host
"""
    Given a root-relative URL, return a full URL including protocol and host
    """ # try request first, so we can get proper http/https value # for tests, etc
url