cadrumo.domain.calculations.registry.schedules module

Filing schedule selection from registry profile predicates.

Evaluates the profile conditions declared on filing schedules of a ModeloRevision against a profile facts mapping and returns only the schedules whose predicates are satisfied.

applicable_filing_schedules(revision, profile_facts, *, period=None)[source]

Return ModeloScheduleDefinition items whose profile predicates match the supplied facts.

Parameters:
Return type:

tuple[ModeloScheduleDefinition, ...]

evaluate_profile_conditions(conditions, profile_facts, *, mode)[source]

Return matched predicate explanations, or None when the profile fails.

Return type:

tuple[str, ...] | None

Parameters:
profile_condition_matches(condition, profile_facts)[source]

Return whether one declared predicate matches the supplied profile facts.

Return type:

bool

Parameters: