beginner python cgi question
Andrew Clover
and-google at doxdesk.com
Sun Dec 14 07:28:20 EST 2003
More information about the Python-list mailing list
Sun Dec 14 07:28:20 EST 2003
- Previous message (by thread): beginner python cgi question
- Next message (by thread): beginner python cgi question
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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/
- Previous message (by thread): beginner python cgi question
- Next message (by thread): beginner python cgi question
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list