diff options
| author | Aurélien Bompard | 2016-01-18 18:25:03 +0100 |
|---|---|---|
| committer | Aurélien Bompard | 2016-08-18 10:28:26 +0200 |
| commit | a8f2fc64c683420f40bac1b4c5d551305a0e0ecc (patch) | |
| tree | 316b471bd753b7382468b56336995ec7ae0d6888 /src/mailman/rest/lists.py | |
| parent | 783603ed668e9e50b1b798579fbfa7b6ff49f98c (diff) | |
| download | mailman-a8f2fc64c683420f40bac1b4c5d551305a0e0ecc.tar.gz mailman-a8f2fc64c683420f40bac1b4c5d551305a0e0ecc.tar.zst mailman-a8f2fc64c683420f40bac1b4c5d551305a0e0ecc.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 c3919c001..8e82cd1a4 100644 --- a/src/mailman/rest/lists.py +++ b/src/mailman/rest/lists.py @@ -330,13 +330,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() |
