Re: [IronPython] Rewrite of WSGI handler

2006-11-01 Thread Christopher Baus
> In wsgi.py you comment "There isn't an obvious way to get request protocol > from HTTPRequest object". In the wsgi.py under fepy CVS that was checked > in > after IPCEr3 I used request.ServerVariables['SERVER_PROTOCOL'] which seems > to return the correct string. Mark, I updated my code to look

Re: [IronPython] Rewrite of WSGI handler

2006-11-01 Thread Mark Rees
Nice job Christopher. I have no problem with combining WSGI and WSGI-SI into one handler. Also testing with my simple wsgi apps under your code and xsp2 works ok so far. Have a more complex app which I will try later tonight. In wsgi.py you comment "There isn't an obvious way to get request protoco

Re: [IronPython] No use Process.Start() , How to execute these command line?

2006-11-01 Thread Kevin Gadd
Try invoking cmd.exe with Process.Start and either passing it a .bat file that executes the desired commands or feeding it input via stdin. There's no real easier way to do this due to the complexity of executing multiple command line statements - you'll probably find that SET won't even work unles

[IronPython] IronPython, Unmanaged Code and Ascii Art

2006-11-01 Thread Michael Foord
Hello all, I've just posted another IronPython example to my blog. I thought you might like to know. Windows only this one, as it uses umanaged code. IronPython, Unmanaged Code and Ascii Art http://www.voidspace.org.uk/python/weblog/arch_d7_2006_10_28.shtml#e530 The main point of the p

[IronPython] Rewrite of WSGI handler

2006-11-01 Thread Christopher Baus
I spent the night hacking on the WSGI handler. Frankly the performance I was getting wasn't very good, and I'm making a grab at some low hanging fruit. Primarily the changes involves loading IronPython and the modules once at startup (rather than per instance). The code is a bit strange because