summaryrefslogtreecommitdiff
path: root/src/mailman/interfaces/listmanager.py
diff options
context:
space:
mode:
authorBarry Warsaw2012-09-04 21:31:50 -0400
committerBarry Warsaw2012-09-04 21:31:50 -0400
commit3c77c83ec4070e7183482445ff0b9a30398b72f4 (patch)
tree7d992c11114cc2e8cb1c22d65f517c1d1f5f201f /src/mailman/interfaces/listmanager.py
parent56c3bf127b5fb912461e638b6936c627d30be744 (diff)
downloadmailman-3c77c83ec4070e7183482445ff0b9a30398b72f4.tar.gz
mailman-3c77c83ec4070e7183482445ff0b9a30398b72f4.tar.zst
mailman-3c77c83ec4070e7183482445ff0b9a30398b72f4.zip
Diffstat (limited to 'src/mailman/interfaces/listmanager.py')
-rw-r--r--src/mailman/interfaces/listmanager.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/mailman/interfaces/listmanager.py b/src/mailman/interfaces/listmanager.py
index 6f43edf3f..573ba11df 100644
--- a/src/mailman/interfaces/listmanager.py
+++ b/src/mailman/interfaces/listmanager.py
@@ -113,6 +113,15 @@ class IListManager(Interface):
not exist.
"""
+ def get_by_list_id(list_id):
+ """Return the mailing list with the given list id, if it exists.
+
+ :type fqdn_listname: Unicode.
+ :param fqdn_listname: The fully qualified name of the mailing list.
+ :return: the matching `IMailingList` or None if the named list does
+ not exist.
+ """
+
def delete(mlist):
"""Remove the mailing list from the database.
@@ -134,6 +143,10 @@ class IListManager(Interface):
"""An iterator over the fully qualified list names of all mailing
lists managed by this list manager.""")
+ list_ids = Attribute(
+ """An iterator over the list ids of all mailing lists managed by this
+ list manager.""")
+
name_components = Attribute(
"""An iterator over the 2-tuple of (list_name, mail_host) for all
mailing lists managed by this list manager.""")