beginner python cgi question
Andrew Clover
and-google at doxdesk.com
Sun Dec 14 07:28:20 EST 2003
Jochen Wersdörfer <jochen at helferlein.net> wrote:
> Address = fields.get("address", "n/a")
(You mean fields.getvalue, natch.)
If you don't want to have to deal with cgi returning a list sometimes, what
you really want is fields.getfirst('fieldname', 'default'), but this only
exists in Python 2.2 onwards.
--
Andrew Clover
mailto:and at doxdesk.com
http://www.doxdesk.com/
More information about the Python-list
mailing list