OpenQuizz
Une application de gestion des contenus pédagogiques
|
Public Member Functions | |
def | __init__ (self, multidict, ma.Schema schema, typing.Tuple[typing.Type,...] known_multi_fields=(ma.fields.List, ma.fields.Tuple,)) |
def | __getitem__ (self, key) |
def | __str__ (self) |
def | __repr__ (self) |
def | __delitem__ (self, key) |
def | __setitem__ (self, key, value) |
def | __getattr__ (self, name) |
def | __iter__ (self) |
def | __contains__ (self, x) |
def | __len__ (self) |
def | __eq__ (self, other) |
def | __ne__ (self, other) |
Data Fields | |
data | |
known_multi_fields | |
multiple_keys | |
A proxy object which wraps multidict types along with a matching schema Whenever a value is looked up, it is checked against the schema to see if there is a matching field where `is_multiple` is True. If there is, then the data should be loaded as a list or tuple. In all other cases, __getitem__ proxies directly to the input multidict.
def __init__ | ( | self, | |
multidict, | |||
ma.Schema | schema, | ||
typing.Tuple[typing.Type, ...] | known_multi_fields = (
ma.fields.List,
ma.fields.Tuple,
) |
||
) |
def __contains__ | ( | self, | |
x | |||
) |
def __delitem__ | ( | self, | |
key | |||
) |
def __eq__ | ( | self, | |
other | |||
) |
def __getattr__ | ( | self, | |
name | |||
) |
def __getitem__ | ( | self, | |
key | |||
) |
Reimplemented in WebArgsTornadoCookiesMultiDictProxy, and WebArgsTornadoMultiDictProxy.
def __iter__ | ( | self | ) |
def __len__ | ( | self | ) |
def __ne__ | ( | self, | |
other | |||
) |
def __repr__ | ( | self | ) |
def __setitem__ | ( | self, | |
key, | |||
value | |||
) |
def __str__ | ( | self | ) |
data |
known_multi_fields |
multiple_keys |