INNER CODE UNIT · Python

_deserialize_from_mongo

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

    def _deserialize_from_mongo(self, value):
        return value

    def _extract_marshmallow_field_params(self):
        params = {
            attribute: getattr(self, attribute)
            for attribute in (
                "validate",
                "required",
                "allow_none",
                "load_only",
                "dump_only",
                "error_messages",
            )
        }
        # Override uMongo attributes with marshmallow_ prefixed attributes
        params.update(self._ma_kwargs)
        return params

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…