durusmail: quixote-users: request.get_path() problem/bug
request.get_path() problem/bug
2002-08-02
2002-08-05
request.get_path() problem/bug
Greg Ward
2002-08-05
On 01 August 2002, Neil Schemenauer said:
> Going on general principles, I think it would be better if Quixote did
> not mess with the SCRIPT_NAME and PATH_INFO environment variables.  Does
> anyone object if I change Quixote to stop doing this?  After the change
> SCRIPT_NAME should be the path to the Quixote application and PATH_INFO
> will be the path into the application's namespace.

Or: maybe os.environ should be left pristine, and request.environ should
be a mangled copy.  Ie. keep doing whatever we're doing to SCRIPT_NAME
and PATH_INFO in request.environ, but don't touch them in os.environ.

Assuming, that is, that the mangling done to request.environ is actually
*useful* to someone.  I'm pretty sure I've never needed it.

        Greg


reply