igneus / calendarium-romanum

liturgical calendar library (Roman Catholic, post-Vatican II)
50 stars 21 forks source link

Sanctorale data loader honoring "extends" #38

Closed igneus closed 4 years ago

igneus commented 6 years ago

YAML front matters of the packaged data files already contain information concerning dependencies. These aren't used yet by the library. However, their current form, listing all parents of the data file in question, is too verbose and fragile. It should be changed from

extends:
  - czech-cs.txt
  - czech-morava-cs.txt

to something like

extends: czech-morava-cs.txt

(czech-morava-cs.txt will declare it's own parent the same way).

The new data loader should accept path to a single data file and load and layer all the parent data files as necessary.

Depends on #33.

igneus commented 4 years ago

Feature available in v0.7.0 (SanctoraleFactory.load_with_parents)