parameters: (request)
return_statement: return path
docstring: Path component of request-URI, as defined by RFC 2965.
docstring_summary: Path component of request-URI, as defined by RFC 2965.
docstring_tokens: Path component of request - URI as defined by RFC 2965 .
function: 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
function_tokens: 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