Re: [Web-SIG] Converting REQUEST_URI to wsgi.script_name/wsgi.path_info

2009-09-28 Thread Ian Bicking
Thanks for the test case; fixed in tip now. If anything goes wrong what should happen is a return value of (quote(script_name), quote(path_info)) -- there's no combination of request_uri/script_name/path_info that should cause an exception (except bugs). As you say, there's no promise that those

Re: [Web-SIG] Converting REQUEST_URI to wsgi.script_name/wsgi.path_info

2009-09-28 Thread Graham Dumpleton
2009/9/28 Ian Bicking : > I tried implementing some code to convert REQUEST_URI (the raw request URL) > and CGI-style SCRIPT_NAME/PATH_INFO into a raw script_name/path_info. >   http://bitbucket.org/ianb/wsgi-peps/src/tip/request_uri.py (python 2) >   http://bitbucket.org/ianb/wsgi-peps/src/tip/req

[Web-SIG] Converting REQUEST_URI to wsgi.script_name/wsgi.path_info

2009-09-27 Thread Ian Bicking
I tried implementing some code to convert REQUEST_URI (the raw request URL) and CGI-style SCRIPT_NAME/PATH_INFO into a raw script_name/path_info. http://bitbucket.org/ianb/wsgi-peps/src/tip/request_uri.py (python 2) http://bitbucket.org/ianb/wsgi-peps/src/tip/request_uri3.py (python 3) Admitte