Custom Property Types¶
-
class
lfview.resources.spatial.base.
InstanceSnapshot
(doc, instance_class, **kwargs)¶ Instance property that can serialize to JSON string
This property type inherits from
properties.Instance
. However, it overrides the serializer and deserializer with custom methods that allow serialization to JSON string. To access this behavior, passsnapshot=True
key word argument intoserialize
.
-
class
lfview.resources.spatial.base.
ShortString
(doc, **kwargs)¶ String property with maximum length
Available keywords (in addition to those inherited from
properties.String
):- max_length - If specified, the length of the string is validated to be less than or equal to this value.