efe24d8a5f
This is a follow-up change to [0] which further implements data objects to be used in the generation of documents in Jinja2. The following additions and changes are made: - Adds helper functions to data objects to filter hosts and networks for ease of use in Jinja2 templates - Adds SiteDocumentData factory function to convert intermediary yaml dictionaries into a SiteDocumentData object with all associated objects - Updates Jinja2 templates to use data objects - Cleans up overly complex looping in Jinja2 - Adds tests for new code in models.py [0] https://review.opendev.org/#/c/662092/ Change-Id: I66ebfeaf5d6ca76b6dee5a2285a74bad8b06b720 |
||
---|---|---|
.. | ||
shared | ||
unit | ||
__init__.py |