core.bones.record

Module Contents

Classes

RecordBone

class core.bones.record.RecordBone(*, format: str = None, indexed: bool = False, using: viur.core.skeleton.RelSkel = None, **kwargs)

Bases: viur.core.bones.base.BaseBone

type = 'record'
singleValueUnserialize(val)
singleValueSerialize(value, skel: SkeletonInstance, name: str, parentIndexed: bool)
parseSubfieldsFromClient() bool

Whenever this request should try to parse subfields submitted from the client. Set only to true if you expect a list of dicts to be transmitted

singleValueFromClient(value, skel, name, origData)
getSearchTags(skel: viur.core.skeleton.SkeletonInstance, name: str) Set[str]
getSearchDocumentFields(valuesCache, name, prefix='')
getReferencedBlobs(skel: viur.core.skeleton.SkeletonInstance, name: str) Set[str]
abstract getUniquePropertyIndexValues(valuesCache: dict, name: str) List[str]

This is intentionally not defined as we don’t now how to derive a key from the relskel being using (ie. which Fields to include and how).