Lines Matching refs:path_info
44 """Return the application's base URI (no PATH_INFO or QUERY_STRING)"""
67 path_info = quote(environ.get('PATH_INFO',''),safe='/;=,')
69 url += path_info[1:]
71 url += path_info
77 """Shift a name from PATH_INFO to SCRIPT_NAME, returning it
79 If there are no remaining path segments in PATH_INFO, return None.
81 the original PATH_INFO or SCRIPT_NAME.
83 Note: when PATH_INFO is just a '/', this returns '' and appends a trailing
89 path_info = environ.get('PATH_INFO','')
90 if not path_info:
93 path_parts = path_info.split('/')
106 environ['PATH_INFO'] = '/'.join(path_parts)
108 # Special case: '/.' on PATH_INFO doesn't get stripped,
109 # because we don't strip the last element of PATH_INFO
111 # above, we fix it here so that PATH_INFO gets normalized to
121 SERVER_NAME, SERVER_PORT, REQUEST_METHOD, SCRIPT_NAME, PATH_INFO,
136 if 'SCRIPT_NAME' not in environ and 'PATH_INFO' not in environ:
138 environ.setdefault('PATH_INFO','/')