Commit 168f0654 authored by Florian Fuchs's avatar Florian Fuchs

Added `archivers` property to List objects.

parent bf3a8ae1
......@@ -446,6 +446,12 @@ class _List:
entries.append(request)
return entries
@property
def archivers(self):
response, content = self._connection.call(
'lists/{0}/archivers'.format(self.list_id))
return sorted([key for key in content if key != 'http_etag'])
def add_owner(self, address):
self.add_role('owner', address)
......
......@@ -687,3 +687,15 @@ Messages held for moderation can be listed on a per list basis.
>>> len(test_one.held)
0
Archivers
=========
>>> for archiver in test_one.archivers:
... print(archiver)
mail-archive
mhonarc
prototype
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment