[Pythonmac-SIG] CGI on the mac

Brian Hooper brian@garage.co.jp
Sun, 30 May 1999 17:14:06 +0900


hi there -

i am a long-time user of python but have only recently started using
it on the mac - one thing i would like to do in particular is use CGI
scripts.  is there anyone else out there doing this?

in particular, i have a question about the AEServer example script
included in the Mac/Demo/cgi folder of the 1.5.2a1 distribution.
i followed the instructions and tried running the script, and though
the first time around it returned an error (error -1708), the second
and any subsequent times that i run the script, it runs fine.

first off there is a NameError for MacOS, since it is not imported
in the script, but even if i add "import MacOS", i still get an error
on the first invocation of the script (where the AEServer starts up).
subsequent invocations of the script work without error.

i'm really interested in finding out what this problem is, but also
in contributing in any way i can to the improvement of the way that
python handles CGI on the mac (in particular, it would be nice to make
it look, through the use of an intermediate module, more like the
standard cgilib).  does anyone have any thoughts on this?

thanks,
brian hooper