cadrumo.application.filing.projection module

Snapshot-owned repeated-row projection plan for filing export.

class FilingProjectionValue(**data)[source]

Bases: BaseModel

One produced repeated-row value at its exact record occurrence address.

Parameters:

data (Any)

projection_ref: FilingProjectionRef
record_id: RecordId
occurrence: int
value: str | Decimal | None
class FilingRecordRenderContext(**data)[source]

Bases: BaseModel

Snapshot-owned layout record plus its positive emitted occurrence.

Parameters:

data (Any)

registry_snapshot: RegistrySnapshot
layout: ExportLayoutDefinition
record: ExportRecordDefinition
occurrence: int
class FilingProjectionPlan(**data)[source]

Bases: BaseModel

Complete projection contexts and values produced before byte rendering.

Parameters:

data (Any)

contexts: tuple[FilingRecordRenderContext, ...]
values: tuple[FilingProjectionValue, ...]
build_m303_filing_projection_plan(*, registry_snapshot, layout, producer_snapshot)[source]

Project every M303 repeated-row family from one selected snapshot and layout.

Core types: RegistrySnapshot.

Return type:

FilingProjectionPlan

Parameters:
project_filing_record(*, registry_snapshot, layout, record, refs, producer_snapshot)[source]

Project one filing record into render contexts and typed field values.

Core types: RegistrySnapshot.

Return type:

tuple[tuple[FilingRecordRenderContext, ...], tuple[FilingProjectionValue, ...]]

Parameters: