Re: cgi in python

Ulf Bartelt (stub@pce60.rz.tu-clausthal.de)
28 Sep 1994 16:45:26 GMT

Guido.van.Rossum@cwi.nl wrote:
: New question -- has anybody else gotten WWW tools written in Python
: that are (or could be made) publicly available? I wouldn't mind
: adding a list of WWW tools to the FAQ. So far I know about cgi.py, my
: own urllib.py, and Steve Miale's Dancer. But there must be more!

I'm just beginning my experiments with python for cgi-s.
The first goal is a mail form in python without a driving html-document.

i.e.: as I don't want form definitions and the cgi program to live in
different files (or even directories) my mailform program sends the mailform
html doc when called without queries.

As this looks extremely ugly in the python program, I'll try to build some
functions for constructing html-output later...

...but first, the mailing part will be polished...

For now this program
* outputs the html form when called without args (from hhtpd's point of
view)
this is the definition of all texts and fields
* does some checks on the passed arguments and displays 'em instead of
mailing it to somewhere
(I'm still experimenting...
...and there's really no lambda in this program ! ;-)
)

Sure this is a small thing, but if someone is interested in simple
examples... ;-)

As this is not part of my daily work, it will take some days till this is
finished and polished enough. Please expect no wonders as I'm definitely
a cgi beginner...

--
Ulf Bartelt | 2:2437/120.666@fidonet.org | bartelt@sun2.isaf.tu-clausthal.de
            |                            | stub@linux.rz.tu-clausthal.de