lino.utils.dataserializer

YAML serializer.

Requires PyYaml (http://pyyaml.org/), but that's checked for in __init__.

(This module's source code is available here.)

Functions

Deserializer(stream_or_string, **options)

Deserialize a stream or string of YAML data.

Classes

DjangoSafeDumper(stream[, default_style, ...])

FakeDeserializedObject(obj)

loaddata requires DeserializedObject instances, but this Deserializer does not bypass pre_save/save methods.

Serializer

class lino.utils.dataserializer.FakeDeserializedObject(obj)

Bases: django.core.serializers.base.DeserializedObject

loaddata requires DeserializedObject instances, but this Deserializer does not bypass pre_save/save methods.

lino.utils.dataserializer.Deserializer(stream_or_string, **options)

Deserialize a stream or string of YAML data.