Strict single-value expecting form content as dictionary.
IF you only expect a single value for each field, then form[key]
will return that single value. It will raise an IndexError if
that expectation is not true. IF you expect a field to have
possible multiple values, than you can use form.getlist(key) to
get all of the values. values() and items() are a compromise:
they return single strings where there is a single value, and
lists of strings otherwise.
|