(request)
return path
Path component of request-URI, as defined by RFC 2965.
Path component of request-URI, as defined by RFC 2965.
Path component of request - URI as defined by RFC 2965 .
def request_path(request):
    """Path component of request-URI, as defined by RFC 2965."""
    url = request.get_full_url()
    parts = urlparse.urlsplit(url)
    path = escape_path(parts.path)
    if not path.startswith("/"):
        # fix bad RFC 2396 absoluteURI
        path = "/" + path
    return path
def request_path ( request ) : url = request . get_full_url ( ) parts = urlparse . urlsplit ( url ) path = escape_path ( parts . path ) if not path . startswith ( "/" ) : # fix bad RFC 2396 absoluteURI path = "/" + path return path