diff options
Diffstat (limited to 'src/mailman/rest/lists.py')
| -rw-r--r-- | src/mailman/rest/lists.py | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/mailman/rest/lists.py b/src/mailman/rest/lists.py index 0103022e7..3374e8f73 100644 --- a/src/mailman/rest/lists.py +++ b/src/mailman/rest/lists.py @@ -105,10 +105,12 @@ class _ListBase(resource.Resource, CollectionMixin): def _resource_as_dict(self, mlist): """See `CollectionMixin`.""" return dict( + display_name=mlist.display_name, fqdn_listname=mlist.fqdn_listname, - mail_host=mlist.mail_host, list_name=mlist.list_name, - real_name=mlist.real_name, + mail_host=mlist.mail_host, + member_count=mlist.members.member_count, + volume=mlist.volume, self_link=path_to('lists/{0}'.format(mlist.fqdn_listname)), ) @@ -135,10 +137,7 @@ class AList(_ListBase): """Delete the named mailing list.""" if self._mlist is None: return http.not_found() - remove_list(self._mlist.fqdn_listname, self._mlist, - # XXX 2010-07-06 barry we need a way to remove the list - # archives either with the mailing list or afterward. - archives=False) + remove_list(self._mlist.fqdn_listname, self._mlist) return no_content() @resource.child(member_matcher) |
