class documentation

class FormsDict(MultiDict):

View In Hierarchy

This 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 input_encoding (default: 'utf8'). Missing attributes default to an empty string.
Method decode Returns a copy with all keys and values de- or recoded to match 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 __getattr__ Undocumented
Method ​_fix Undocumented

Inherited from MultiDict:

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 replace Replace the list of values with a single value.
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 items Undocumented
Method keys Undocumented
Method values Undocumented
Instance Variable dict Undocumented
def decode(self, encoding=None):
Returns a copy with all keys and values de- or recoded to match input_encoding. Some libraries (e.g. WTForms) want a unicode dictionary.
def getunicode(self, name, default=None, encoding=None):
Return the value as a unicode string, or the default.
input_encoding: str =

Undocumented

recode_unicode: bool =

Undocumented

def __getattr__(self, name, default=unicode()):

Undocumented

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

Undocumented