summaryrefslogtreecommitdiff
path: root/src/mailman/model/listmanager.py
diff options
context:
space:
mode:
authorBarry Warsaw2012-01-27 16:45:39 -0500
committerBarry Warsaw2012-01-27 16:45:39 -0500
commit1159b78601ffb15558754b35e272d34bc8938a43 (patch)
tree356dcf7c448be1e1fa46959a4f37169f55ce20d9 /src/mailman/model/listmanager.py
parentcdfc752b33a9aaed0fb3ea311e88af02d9d44419 (diff)
downloadmailman-1159b78601ffb15558754b35e272d34bc8938a43.tar.gz
mailman-1159b78601ffb15558754b35e272d34bc8938a43.tar.zst
mailman-1159b78601ffb15558754b35e272d34bc8938a43.zip
Diffstat (limited to 'src/mailman/model/listmanager.py')
-rw-r--r--src/mailman/model/listmanager.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mailman/model/listmanager.py b/src/mailman/model/listmanager.py
index daf6b8425..db1f18ecb 100644
--- a/src/mailman/model/listmanager.py
+++ b/src/mailman/model/listmanager.py
@@ -95,6 +95,14 @@ class ListManager:
MailingList.list_name):
yield '{0}@{1}'.format(list_name, mail_host)
+ @property
+ def name_components(self):
+ """See `IListManager`."""
+ result_set = config.db.store.find(MailingList)
+ for mail_host, list_name in result_set.values(MailingList.mail_host,
+ MailingList.list_name):
+ yield list_name, mail_host
+
# XXX 2010-02-24 barry Get rid of this.
def get_mailing_lists(self):
"""See `IListManager`."""