In article <[EMAIL PROTECTED]>, Steve Holden <[EMAIL PROTECTED]> wrote:
> Ron Garret wrote: > > In article <[EMAIL PROTECTED]>, > > Steve Holden <[EMAIL PROTECTED]> wrote: > > > > > >>But basically, you aren't providing a CGI environment, and that's why > >>cgi.parse() isn't working. > > > > > > Clearly. So what should I be doing? Surely I'm not the first person to > > have this problem? > > > > I have managed to work around this for now by copying and modifying the > > code in cgi.parse, but this still feels like a Horrible Hack to me. > > > Let me get this right. You are aware that CGIHTTPServer module exists. > But you don't want to use that. That's right. I don't want to run CGI scripts. I don't want to launch a new process for every request. I want all requests handled in the server process. > Instead you want to use your own code. No, the whole reason I'm asking this question is because I *don't* want to write my own code. It seems to me that the code to do what I want ought to be out there (or in there) somewhere and I shouldn't have to reinvent this wheel. But I can't find it. > So you have ended up duplicating some of the functionality of the cgi > library. And it feels like a hack. Yep. rg -- http://mail.python.org/mailman/listinfo/python-list