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/strsorstr/FieldStorages(as is returned by thepaste.request.parse_functions).Can optionally also decode keys when the
decode_keysargument is True.FieldStorageinstances are cloned, and the clone’sfilenamevariable is decoded. Itsnamevariable is decoded whendecode_keysis enabled.