durusmail: quixote-users: Problem with demo
Problem with demo
2001-10-05
2001-10-05
2001-10-05
2001-10-05
2001-10-05
2001-10-05
2001-10-05
2001-10-05
2001-10-05
2001-10-09
2001-10-09
2001-10-05
2001-10-05
2001-10-09
Problem with demo
Andrew Kuchling
2001-10-05
On Fri, Oct 05, 2001 at 02:20:26PM +0100, Mikhail Sobolev wrote:
>PATH_INFO /scripts/view.py
>SCRIPT_NAME /scripts/view.py

Aha!  It's expecting PATH_INFO to be just '/'.  Zope has a hack to get
around this; from
http://cvs.zope.org/Zope2/pcgi/pcgi_publisher.py?rev=HEAD&content-type=text/vnd
.viewcvs-markup :


        ### IIS hack to fix broken PATH_INFO
        ### taken from Mike Fletcher's win_cgi_module_publisher
        import string
        if env.has_key('SERVER_SOFTWARE') and string.find(env['SERVER_SOFTWARE
'],'Microsoft-IIS') != -1:
            script =
filter(None,string.split(string.strip(env['SCRIPT_NAME']),'/'))
            path = filter(None,string.split(string.strip(env['PATH_INFO']),'/'))
            env['PATH_INFO'] = string.join(path[len(script):],'/')

Thanks, Microsoft!

--amk






reply