KeyHelper¶
- class dsviper.KeyHelper¶
Bases:
objectAnswers three questions on the key side of a model: which keys of a key type carry a document, which attachments a type is keyed into, and which attachments a given key has no document for.
Note: Not directly instantiable.
- static attachments(type: Type, definitions: DefinitionsConst) list[Attachment]¶
Return the attachments of definitions whose key type is type.
- static collect_keys(type_key: TypeKey, attachment_getting: AttachmentGetting) ValueSet¶
Return every key of type type_key that attachment_getting holds a document for.
- static missing_attachments(key: ValueKey, attachment_getting: AttachmentGetting) list[Attachment]¶
Return the attachments key could have but attachment_getting holds no document for.