By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,767 Members | 1,310 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,767 IT Pros & Developers. It's quick & easy.

The cgi module is no substitute for a dictionary.

P: n/a
Ahem:

<gripe>

cgi.FieldStorage() doesn't give me a dictionary. Instead it gives me
something that pretends to be a dictionary, badly.

If it was a dictionary, I could print it and get a list the form entries sent
back to me. When writing code to parse preprepared forms (such as a credit
card verification service returns), this is actually rather nice to be able
to do.

</gripe>

Rob
Jul 18 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Rob Landley wrote:
<gripe>

cgi.FieldStorage() doesn't give me a dictionary. Instead it gives me
something that pretends to be a dictionary, badly.

If it was a dictionary, I could print it and get a list the form entries sent
back to me. When writing code to parse preprepared forms (such as a credit
card verification service returns), this is actually rather nice to be able
to do.

</gripe>


Check the source. Maybe cgi.print_form() will do what you want. If
not, it should be pretty easy to add the right thing.

-Peter
Jul 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.