Ok,
it was a lame brained pilot erros on my part.
But I thought I would record the solution for anyone else who may have
made the same error.
NOT a MochiKit problem
First,
I was using python -m CGIHTTPServer <portno>, which doesn't really
understand that .PY scripts can be mapped in as CGI handlers.
If you switch to Apache, thre's still a little piece of yak shaving to
do.
You have to play with your httpd.conf, which on the Mac is in
/etc/httpd/
open up the options:
#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "/Library/WebServer/Documents">
    Options Indexes FollowSymLinks MultiViews ExecCGI

also, do:
   #
    # AddHandler allows you to map certain file extensions to
"handlers",
    # actions unrelated to filetype. These can be either built into the
server
    # or added with the Action command (see below)
    #
    # If you want to use server side includes, or CGI outside
    # ScriptAliased directories, uncomment the following lines.
    #
    # To use CGI scripts:
    #
    AddHandler cgi-script .cgi
    AddHandler cgi-script .py

Those  give you everything you'll need, and (bonus) you can stick your
python scripts wherever you want relative to DocumentRoot.

Also, there were errors in my pythong cgi handler, but I won't go
there! :-)


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"MochiKit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/mochikit
-~----------~----~----~----~------~----~------~--~---

Reply via email to