diff options
| author | Barry Warsaw | 2016-11-26 05:05:45 +0000 |
|---|---|---|
| committer | Barry Warsaw | 2016-11-26 05:05:45 +0000 |
| commit | ada923b841f9c6d86a397d1ffcd7532ce9dc20dc (patch) | |
| tree | 05ff6a88413597e911e74c5b42d54a5874469eae /src/mailman/rest/lists.py | |
| parent | b4c663e717f702f0ffe8a3bc9207b2eda635a32d (diff) | |
| parent | accc4f1a883d4a5757eb9b0156e58e72b77a8af7 (diff) | |
| download | mailman-ada923b841f9c6d86a397d1ffcd7532ce9dc20dc.tar.gz mailman-ada923b841f9c6d86a397d1ffcd7532ce9dc20dc.tar.zst mailman-ada923b841f9c6d86a397d1ffcd7532ce9dc20dc.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() |
