def cgiFieldStorageToDict( fieldStorage ):
   """Get a plain dictionary, rather than the '.value' system used by the cgi module."""
   params = {}
   for key in fieldStorage.keys():
      params[ key ] = fieldStorage[ key ].value
   return params
Get a plain dictionary, rather than the '.value' system used by the cgi module.
recipes/Python/81547_Using_simple_dictionary_CGI/recipe-81547.py