Skip to content

hkb_editor.workflows.create_object

get_record_types

get_record_types(
    tagfile: Tagfile,
    allowed_types: Iterable[str] = None,
    *,
    include_derived_types: bool = False,
) -> list[tuple[str, str]]

List the (type_id, type_name) pairs a new object may use.

allowed_types may name types either by ID (typeNNN) or by name. Without it every record type in the tagfile is returned.

Ko-fi donations