diff options
| author | Barry Warsaw | 2016-11-28 17:20:25 -0500 |
|---|---|---|
| committer | Barry Warsaw | 2016-11-28 17:20:25 -0500 |
| commit | 503cd08131bd73388af8cf0a27fd91d2e55501c9 (patch) | |
| tree | a5910f45750ebbded0ca23bbce7bb994ec7f2cb8 /src/mailman/rest/lists.py | |
| parent | ffc8ed1347121079c047ec454f94e27bf54a9d42 (diff) | |
| parent | 88212f9d5c9a13e8e723d90a42f00d0f9b66d929 (diff) | |
| download | mailman-503cd08131bd73388af8cf0a27fd91d2e55501c9.tar.gz mailman-503cd08131bd73388af8cf0a27fd91d2e55501c9.tar.zst mailman-503cd08131bd73388af8cf0a27fd91d2e55501c9.zip | |
Diffstat (limited to 'src/mailman/rest/lists.py')
| -rw-r--r-- | src/mailman/rest/lists.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mailman/rest/lists.py b/src/mailman/rest/lists.py index 8952f1156..1fdf595fb 100644 --- a/src/mailman/rest/lists.py +++ b/src/mailman/rest/lists.py @@ -337,13 +337,15 @@ class ListArchivers: """Get all the archiver statuses.""" archiver_set = IListArchiverSet(self._mlist) resource = {archiver.name: archiver.is_enabled - for archiver in archiver_set.archivers} + for archiver in archiver_set.archivers + if archiver.system_archiver.is_enabled} okay(response, etag(resource)) def patch_put(self, request, response, is_optional): archiver_set = IListArchiverSet(self._mlist) kws = {archiver.name: ArchiverGetterSetter(self._mlist) - for archiver in archiver_set.archivers} + for archiver in archiver_set.archivers + if archiver.system_archiver.is_enabled} if is_optional: # For a PATCH, all attributes are optional. kws['_optional'] = kws.keys() |
