[Web-SIG] wsgiorg.routing_args and original SCRIPT_NAME

2008-01-24 Thread Manlio Perillo
Hi. I have implemented the wsgiorg.routing_args specification, using the code in the example. However I have a problem, and I can't see a good solution. Suppose that an application is mounted (embedded in a web server) at location "/example". The application script executed by the server simp

Re: [Web-SIG] wsgiorg.routing_args and original SCRIPT_NAME

2008-01-24 Thread Phillip J. Eby
At 03:22 PM 1/24/2008 +0100, Manlio Perillo wrote: >Let's suppose that the request uri is "/example/login/". > >For the main application, SCRIPT_NAME is "/example". >For the application at "/login", SCRIPT_NAME is "/example/login". > >My problem is that I want, in the page generated by "login" appl

Re: [Web-SIG] wsgiorg.routing_args and original SCRIPT_NAME

2008-01-24 Thread Manlio Perillo
Phillip J. Eby ha scritto: > At 03:22 PM 1/24/2008 +0100, Manlio Perillo wrote: >> Let's suppose that the request uri is "/example/login/". >> >> For the main application, SCRIPT_NAME is "/example". >> For the application at "/login", SCRIPT_NAME is "/example/login". >> >> My problem is that I want

Re: [Web-SIG] wsgiorg.routing_args and original SCRIPT_NAME

2008-01-24 Thread Sven Berkvens-Matthijsse
> Phillip J. Eby ha scritto: > > At 03:22 PM 1/24/2008 +0100, Manlio Perillo wrote: > >> Let's suppose that the request uri is "/example/login/". > >> > >> For the main application, SCRIPT_NAME is "/example". > >> For the application at "/login", SCRIPT_NAME is "/example/login". > >> > >> My proble

Re: [Web-SIG] wsgiorg.routing_args and original SCRIPT_NAME

2008-01-24 Thread Manlio Perillo
Sven Berkvens-Matthijsse ha scritto: >> Phillip J. Eby ha scritto: >>> At 03:22 PM 1/24/2008 +0100, Manlio Perillo wrote: Let's suppose that the request uri is "/example/login/". For the main application, SCRIPT_NAME is "/example". For the application at "/login", SCRIPT_NAME is

Re: [Web-SIG] wsgiorg.routing_args and original SCRIPT_NAME

2008-01-24 Thread Ian Bicking
Manlio Perillo wrote: > I have implemented the wsgiorg.routing_args specification, using the > code in the example. > > However I have a problem, and I can't see a good solution. > > Suppose that an application is mounted (embedded in a web server) at > location "/example". > > The application

Re: [Web-SIG] wsgiorg.routing_args and original SCRIPT_NAME

2008-01-28 Thread Manlio Perillo
Ian Bicking ha scritto: > > [...] > >> 1) Do not change SCRIPT_NAME, and instead add a wsgiorg.consumed_path, a >> list. >> >> This means that the request uri recostruction must be changed: >> SCRIPT_NAME = SCRIPT_NAME + '/'.join(wsgiorg.consumed_path) > > I suppose you could leave st

Re: [Web-SIG] wsgiorg.routing_args and original SCRIPT_NAME

2008-01-28 Thread Ian Bicking
Manlio Perillo wrote: > Ian Bicking ha scritto: > > >> [...] >> >>> 1) Do not change SCRIPT_NAME, and instead add a wsgiorg.consumed_path, a >>> list. >>> >>> This means that the request uri recostruction must be changed: >>> SCRIPT_NAME = SCRIPT_NAME + '/'.join(wsgiorg.consumed_path)