class documentation

This :class:`MultiDict` subclass is used to store request form data. Additionally to the normal dict-like item access methods (which return unmodified data as native strings), this container also supports attribute-like access to its values. Attributes are automatically de- or recoded to match :attr:`input_encoding` (default: 'utf8'). Missing attributes default to an empty string.

Method __getattr__ Undocumented
Method decode Returns a copy with all keys and values de- or recoded to match :attr:`input_encoding`. Some libraries (e.g. WTForms) want a unicode dictionary.
Method getunicode Return the value as a unicode string, or the default.
Class Variable input_encoding Undocumented
Class Variable recode_unicode Undocumented
Method _fix Undocumented

Inherited from MultiDict:

Method __contains__ Undocumented
Method __delitem__ Undocumented
Method __getitem__ Undocumented
Method __init__ Undocumented
Method __iter__ Undocumented
Method __len__ Undocumented
Method __setitem__ Undocumented
Method allitems Undocumented
Method append Add a new value to the list of values for this key.
Method get Return the most recent value for a key.
Method getall Return a (possibly empty) list of values for a key.
Method items Undocumented
Method keys Undocumented
Method replace Replace the list of values with a single value.
Method values Undocumented
Instance Variable dict Undocumented
def __getattr__(self, name, default=unicode()): (source)

Undocumented

def decode(self, encoding=None): (source)

Returns a copy with all keys and values de- or recoded to match :attr:`input_encoding`. Some libraries (e.g. WTForms) want a unicode dictionary.

def getunicode(self, name, default=None, encoding=None): (source)

Return the value as a unicode string, or the default.

input_encoding: str = (source)

Undocumented

recode_unicode: bool = (source)

Undocumented

def _fix(self, s, encoding=None): (source)

Undocumented