INNER CODE UNIT · Python

I18nErrorDict

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

class I18nErrorDict(dict):
    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

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…