summaryrefslogtreecommitdiff
path: root/src/mailman/rest/lists.py
diff options
context:
space:
mode:
authorBarry Warsaw2012-03-15 17:34:34 -0700
committerBarry Warsaw2012-03-15 17:34:34 -0700
commit148bd63fcca2613c4d10d234fe47a173d307b3e5 (patch)
tree8f4034945d35b752055f64d9d3e547676d362ead /src/mailman/rest/lists.py
parent854acf2f858950d6c926c82c5ee642014d7d973f (diff)
downloadmailman-148bd63fcca2613c4d10d234fe47a173d307b3e5.tar.gz
mailman-148bd63fcca2613c4d10d234fe47a173d307b3e5.tar.zst
mailman-148bd63fcca2613c4d10d234fe47a173d307b3e5.zip
* Add property `IRoster.member_count`.
Also, change the implementation of mailing list REST resource's member_count to use the more efficient implementation of IRoster.member_count.
Diffstat (limited to 'src/mailman/rest/lists.py')
-rw-r--r--src/mailman/rest/lists.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mailman/rest/lists.py b/src/mailman/rest/lists.py
index 38e2d9841..c95c9a88a 100644
--- a/src/mailman/rest/lists.py
+++ b/src/mailman/rest/lists.py
@@ -109,7 +109,7 @@ class _ListBase(resource.Resource, CollectionMixin):
fqdn_listname=mlist.fqdn_listname,
list_name=mlist.list_name,
mail_host=mlist.mail_host,
- member_count=len(tuple(mlist.members.members)),
+ member_count=mlist.members.member_count,
volume=mlist.volume,
self_link=path_to('lists/{0}'.format(mlist.fqdn_listname)),
)