werkzeug.MultiDict.getlist¶
-
MultiDict.
getlist
(key, type=None)[source]¶ Return the list of items for a given key. If that key is not in the MultiDict, the return value will be an empty list. Just as get getlist accepts a type parameter. All items will be converted with the callable defined there.
Parameters: - key – The key to be looked up.
- type – A callable that is used to cast the value in the
MultiDict
. If aValueError
is raised by this callable the value will be removed from the list.
Returns: a
list
of all the values for the key.