paste.util.multidict
– Dictionaries with multiple values¶
Module Contents¶
- class paste.util.multidict.MultiDict(*args, **kw)¶
An ordered dictionary that can have multiple values for each key. Adds the methods getall, getone, mixed, and add to the normal dictionary interface.
- class paste.util.multidict.UnicodeMultiDict(multi=None, encoding=None, errors='strict', decode_keys=False)¶
A MultiDict wrapper that decodes returned values to unicode on the fly. Decoding is not applied to assigned values.
The key/value contents are assumed to be
str
/strs
orstr
/FieldStorages
(as is returned by thepaste.request.parse_
functions).Can optionally also decode keys when the
decode_keys
argument is True.FieldStorage
instances are cloned, and the clone’sfilename
variable is decoded. Itsname
variable is decoded whendecode_keys
is enabled.