durusmail: quixote-users: request.get_path() problem/bug
request.get_path() problem/bug
2002-08-02
2002-08-05
request.get_path() problem/bug
Neil Schemenauer
2002-08-01
On Thu, Aug 01, 2002 at 08:14:05PM +0200, Andreas Kostyrka wrote:
> But it's basically os.environ["SCRIPT_NAME"] before the publisher starts
> to work with it.

For some reason I was mis-remembering that rewrite rules could change
the SCRIPT_NAME.  For example, I was worried that rewriting "/foo" to
"/cgi-bin/foo.cgi" would cause SCRIPT_NAME to be "/cgi-bin/foo.cgi".
That doesn't seem to be the case (at least for the version of Apache I
have installed).

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.

  Neil


reply