[medusa] non-threaded CGI apps
rushing@n...
rushing@n...
Fri, 14 May 1999 19:13:37 -0700 (PDT)
ita.mis@e... writes:
> is there an example of a script which does CGI parameter processing
> on a non-threaded python installation?
>
> is this at all possible right now?
Well, *now* it is. 8^)
I spruced up the script_handler a bit. New features:
1) restricted execution is a flag (off by default, so
scripts will use execfile)
2) support for PUT/POST requests, data is handed directly
to the script via stdin as a StringIO object.
3) persistent script handler. this is a bit like the bobo/zope
system. modules can be added and deleted from the handler.
the modules are persistent. the 'main' procedure of the module
is handed the http_request object as its only parameter (rather
than a bunch of CGI environment variable madness).
A 'script_handler_demo' directory is also included, with lots of
comments. It should run out-of-the-box.
Note: restricted execution is off by default because apparently the
cgi module cannot be imported? But many folks will want to use it
for forms.
-Sam
------------------------------------------------------------------------
eGroup home: http://www.eGroups.com/group/medusa
http://www.eGroups.com - Simplifying group communications