Greg -
I am running Xitami 2.5b5 with Quixote in Windows XP, and it does not
seem to have this problem. I introduced a new template "ouch",
containing a reference to a nonexistent function, into the session
demo, and produced an environment dump in which these are found:
PATH_INFO /ouch
SCRIPT_NAME /cgi-bin/session_demo
Jim Dukarm
DELTA-X RESEARCH
> Back in May, Gene Christian posted (roughly) the following patch, which
> he needed for Quixote to work with Xitami. I dropped the ball and never
> checked in his patch. Can anyone tell me if it's still needed?
> --- http_request.py 30 Oct 2002 20:59:10 -0000 1.53
> +++ http_request.py 20 Nov 2002 15:48:44 -0000
> @@ -134,7 +134,17 @@
> if path.startswith(script):
> path = path[len(script):]
> self.environ['PATH_INFO'] = path
> -
> +
> + # Xitami seems to mangle SCRIPT_NAME: it leaves PATH_INFO
> + # appended to SCRIPT_NAME. This removes the PATH_INFO data from
> + # SCRIPT_NAME
> + if (web_server.find('Xitami') != -1):
> + script = environ['SCRIPT_NAME']
> + path = environ['PATH_INFO']
> + if script.endswith(path):
> + script = script[:0-len(path)]
> + self.environ['SCRIPT_NAME'] = script
> +
> def add_form_value (self, key, value):
> if self.form.has_key(key):
> found = self.form[key]
> Thanks --
> Greg