diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-05-06 11:40:24 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-05-28 10:37:29 +0200 |
commit | fa46b668beb793050f8bc672522c4f1718abb19d (patch) | |
tree | 7b04ab823386b805caf5416e0163575cdbf36cfd /rtemsqual/applconfig.py | |
parent | rtemsqual/tests/util: New module (diff) | |
download | rtems-central-fa46b668beb793050f8bc672522c4f1718abb19d.tar.bz2 |
Move license and copyright registration of items
This avoids a future cyclic dependency between the items and content
modules.
Diffstat (limited to 'rtemsqual/applconfig.py')
-rw-r--r-- | rtemsqual/applconfig.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/rtemsqual/applconfig.py b/rtemsqual/applconfig.py index 7b9be118..2d1b947d 100644 --- a/rtemsqual/applconfig.py +++ b/rtemsqual/applconfig.py @@ -128,7 +128,7 @@ def _resolve_constraint_links(content: SphinxContent, item: Item, constraint["custom"] = [] for link in reversed(constraint["links"]): other = item.map(link) - other.register_license_and_copyrights(content) + content.register_license_and_copyrights_of_item(other) constraint["custom"].append(other["text"]) @@ -190,12 +190,12 @@ def _generate_notes(content: SphinxContent, notes: Optional[str]) -> None: def _generate_file(group: Item, options: ItemMap, target: str) -> None: content = SphinxContent() - group.register_license_and_copyrights(content) + content.register_license_and_copyrights_of_item(group) content.add_header(group["appl-config-group-name"], level="=") content.add(group["appl-config-group-description"]) for item in sorted(options.values(), key=lambda x: x.uid): name = item["appl-config-option-name"] - item.register_license_and_copyrights(content) + content.register_license_and_copyrights_of_item(item) content.add_index_entries([name] + item["appl-config-option-index"]) content.add_label(name) content.add_header(name, level="-") |