diff options
| author | Barry Warsaw | 2013-11-25 21:26:15 -0500 |
|---|---|---|
| committer | Barry Warsaw | 2013-11-25 21:26:15 -0500 |
| commit | 833633741f110354408b3e0cfd7f733a2541e97c (patch) | |
| tree | 4f63f9bb3a9b17a2250b398a6f80f51e6080a82d /src/mailman/config/config.py | |
| parent | 91a39201f65747fde915495813e41ff324f87625 (diff) | |
| download | mailman-833633741f110354408b3e0cfd7f733a2541e97c.tar.gz mailman-833633741f110354408b3e0cfd7f733a2541e97c.tar.zst mailman-833633741f110354408b3e0cfd7f733a2541e97c.zip | |
Diffstat (limited to 'src/mailman/config/config.py')
| -rw-r--r-- | src/mailman/config/config.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/mailman/config/config.py b/src/mailman/config/config.py index 74931c029..86919e3f1 100644 --- a/src/mailman/config/config.py +++ b/src/mailman/config/config.py @@ -249,12 +249,14 @@ class Configuration: @property def archivers(self): - """Iterate over all the enabled archivers.""" + """Iterate over all the archivers.""" for section in self._config.getByCategory('archiver', []): - if not as_boolean(section.enable): + class_path = section['class'].strip() + if len(class_path) == 0: continue - class_path = section['class'] - yield call_name(class_path) + archiver = call_name(class_path) + archiver.is_enabled = as_boolean(section.enable) + yield archiver @property def style_configs(self): |
