cadrumo.domain.deadlines.setup_answer_projection module¶
Registry-aware projection of persisted profile values into setup answers.
The typed answer model lives in the user-profile domain. This domain module owns the projection-specific field specification and composes registry declarations into the projection consumed by deadline profile construction. Core therefore remains independent of registry authority while the registry catalogue remains the one source of these facts.
- class SetupFieldSpec(path, answer_type, default=None)[source]¶
Bases:
objectDescribe how one setup answer is projected from persisted profile data.
- setup_answer_fields()[source]¶
Return every setup-answer field that a persisted profile record can fill.
The declarations are resolved from the registry authority in scope on each call, so a republished generation is never answered from a stale copy.
- Return type:
- project_setup_answers(values)[source]¶
Build
SetupAnswersfrom canonical profile-record values.A present path wins even when its value is blank; only an absent path uses the registry declaration’s default. Blank boolean tokens stay undeclared rather than being collapsed to
False.- Return type:
- Parameters: