getfirst and re

Steve Holden steve at holdenweb.com
Fri Jan 8 12:26:31 EST 2010


MRAB wrote:
> Victor Subervi wrote:
> [snip]
>>
>> Code snippet:
>>
>> def cgiFieldStorageToDict(fieldStorage):
                             ^^^^^^^^^^^^
Further hint ...

>>   params = {}
>>   for key in fieldStorage.keys():
>>     params[key] = cgi.FieldStorage[key].value
>                     ^^^^^^^^^^^^^^^^^^^^^
> This is your problem.
> 
>>   return params
>>
> [snip]
> 
regards
 Steve
-- 
Steve Holden           +1 571 484 6266   +1 800 494 3119
PyCon is coming! Atlanta, Feb 2010  http://us.pycon.org/
Holden Web LLC                 http://www.holdenweb.com/
UPCOMING EVENTS:        http://holdenweb.eventbrite.com/




More information about the Python-list mailing list