diff options
| author | Barry Warsaw | 2012-01-27 16:53:06 -0500 |
|---|---|---|
| committer | Barry Warsaw | 2012-01-27 16:53:06 -0500 |
| commit | 1655fcc1e8d1cb2e9ee19288c026c85b3b470a97 (patch) | |
| tree | b3820003e4ac9da35f421b916e0b4b2f3e162f16 /src | |
| parent | 1159b78601ffb15558754b35e272d34bc8938a43 (diff) | |
| download | mailman-1655fcc1e8d1cb2e9ee19288c026c85b3b470a97.tar.gz mailman-1655fcc1e8d1cb2e9ee19288c026c85b3b470a97.tar.zst mailman-1655fcc1e8d1cb2e9ee19288c026c85b3b470a97.zip | |
Diffstat (limited to 'src')
| -rw-r--r-- | src/mailman/docs/NEWS.rst | 1 | ||||
| -rw-r--r-- | src/mailman/interfaces/listmanager.py | 7 | ||||
| -rw-r--r-- | src/mailman/model/listmanager.py | 6 |
3 files changed, 1 insertions, 13 deletions
diff --git a/src/mailman/docs/NEWS.rst b/src/mailman/docs/NEWS.rst index 79cc8d2b4..0b59e75cd 100644 --- a/src/mailman/docs/NEWS.rst +++ b/src/mailman/docs/NEWS.rst @@ -26,6 +26,7 @@ Interfaces * Add property `IUserManager.members` to return all `IMembers` in the system. * Add property `IListmanager.name_compoments` which returns 2-tuples for every mailing list as (list_name, mail_host). + * Remove previously deprecated `IListManager.get_mailing_lists()`. Commands -------- diff --git a/src/mailman/interfaces/listmanager.py b/src/mailman/interfaces/listmanager.py index c4f21f809..6f43edf3f 100644 --- a/src/mailman/interfaces/listmanager.py +++ b/src/mailman/interfaces/listmanager.py @@ -137,10 +137,3 @@ class IListManager(Interface): name_components = Attribute( """An iterator over the 2-tuple of (list_name, mail_host) for all mailing lists managed by this list manager.""") - - def get_mailing_lists(): - """The list of all mailing lists. - - :return: The list of all known mailing lists. - :rtype: list of `IMailingList` - """ diff --git a/src/mailman/model/listmanager.py b/src/mailman/model/listmanager.py index db1f18ecb..cb56a36b6 100644 --- a/src/mailman/model/listmanager.py +++ b/src/mailman/model/listmanager.py @@ -102,9 +102,3 @@ class ListManager: 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`.""" - # lazr.restful will not allow this to be a generator. - return list(self.mailing_lists) |
