INNER CODE UNIT · Python

__getitem__

Scille/umongo · src/umongo/abstract.py:18

    def __getitem__(self, name):
        raw_msg = dict.__getitem__(self, name)
        return _(raw_msg)


class BaseMarshmallowSchema(RemoveMissingSchema):
    """Base schema for pure marshmallow schemas"""


class BaseSchema(ma.Schema):
    """All schema used in umongo should inherit from this base schema"""

    # This class attribute is overriden by the builder upon registration
    # to let the template set the base marshmallow schema class.
    # It may be overriden in Template classes.
    MA_BASE_SCHEMA_CLS = BaseMarshmallowSchema

    def __init__(self, *args, **kwargs):

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…