From 904bc270bb870e14738d439355001ea8c56cfc3f Mon Sep 17 00:00:00 2001 From: Emmanuel Garette Date: Sun, 23 May 2021 21:35:42 +0200 Subject: [PATCH] load extra annotator if not already done --- src/rougail/annotator/__init__.py | 3 +++ src/rougail/annotator/fill.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/rougail/annotator/__init__.py b/src/rougail/annotator/__init__.py index ce10edf5d..dca5a0bd2 100644 --- a/src/rougail/annotator/__init__.py +++ b/src/rougail/annotator/__init__.py @@ -71,6 +71,9 @@ class SpaceAnnotator: # pylint: disable=R0903 get_annotators(ANNOTATORS, 'rougail.annotator') for extra_annotator in objectspace.rougailconfig['extra_annotators']: get_annotators(ANNOTATORS, extra_annotator) + for extra_annotator in objectspace.rougailconfig['extra_annotators']: + if extra_annotator not in ANNOTATORS: + get_annotators(ANNOTATORS, extra_annotator) annotators = ANNOTATORS['rougail.annotator'].copy() for extra_annotator in objectspace.rougailconfig['extra_annotators']: annotators.extend(ANNOTATORS[extra_annotator]) diff --git a/src/rougail/annotator/fill.py b/src/rougail/annotator/fill.py index 8ee3bac7f..91e52bcb5 100644 --- a/src/rougail/annotator/fill.py +++ b/src/rougail/annotator/fill.py @@ -32,7 +32,7 @@ from rougail.annotator.target import TargetAnnotator from rougail.annotator.param import ParamAnnotator -CALC_MULTI = ('calc_value', 'calc_list', 'get_range', 'calc_val_first_value', 'unbound_filename', 'zone_information', 'get_certificates') +CALC_MULTI = ('calc_value', 'calc_list', 'get_range', 'calc_val_first_value', 'unbound_filename', 'zone_information', 'get_certificates', 'nsd_filename', 'get_linked_configuration') class Annotator(TargetAnnotator, ParamAnnotator):