Simple discussion of python cgi approaches?

Steve Holden python at holdenweb.com
Wed Apr 14 20:50:46 EDT 2004


Kylotan wrote:
[...]
> 
> The main problem I face is that I don't know what platform my scripts
> will
> eventually run on. I may not have the ability to install extra
> software so I
> need to keep my scripts close to the CGI standard. That is, one file
> per script,
> using the cgi module for form processing and print for output. I don't
> mind
> having to redirect stdout or call these scripts indirectly instead of
> via
> their __main__ functions, but writing to specific APIs (beyond a small
> wrapper
> layer, of course) is not an option at the moment.
> 
> So I'm hoping for simple solutions that will involve no more than a
> few changes
> to each script, whereas most of the solutions that seem to be
> available require
> me to use their own request objects, or to treat pages as callable
> functions within an overall page as mod_python seems to require.
> 

Well, what you've just said probably rules out both the approaches I 
chose to write about, but you've also defined your problem much more 
closely and so someone else migth be able to offer more helpful advice.

regards
  Steve




More information about the Python-list mailing list