summaryrefslogtreecommitdiff
path: root/src/mailman/commands
diff options
context:
space:
mode:
authorBarry Warsaw2011-06-16 16:46:02 -0400
committerBarry Warsaw2011-06-16 16:46:02 -0400
commita8722b736a9070288f9bd62b8650f9e682a33ea6 (patch)
tree0d2a9342963d9b81af5cd822c571beefda29b7a2 /src/mailman/commands
parent3c99f28d219596434e8547df95e7041e2cf21fb7 (diff)
downloadmailman-a8722b736a9070288f9bd62b8650f9e682a33ea6.tar.gz
mailman-a8722b736a9070288f9bd62b8650f9e682a33ea6.tar.zst
mailman-a8722b736a9070288f9bd62b8650f9e682a33ea6.zip
* The IMailingList attribute ``host_name`` has been renamed to ``mail_host``
for consistency. This changes the REST API for mailing list resources. (LP: #787599)
Diffstat (limited to 'src/mailman/commands')
-rw-r--r--src/mailman/commands/cli_aliases.py2
-rw-r--r--src/mailman/commands/cli_lists.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/mailman/commands/cli_aliases.py b/src/mailman/commands/cli_aliases.py
index b13919121..31affc78c 100644
--- a/src/mailman/commands/cli_aliases.py
+++ b/src/mailman/commands/cli_aliases.py
@@ -126,7 +126,7 @@ class Dummy:
# First, sort mailing lists by domain.
by_domain = {}
for mlist in getUtility(IListManager).mailing_lists:
- by_domain.setdefault(mlist.host_name, []).append(mlist)
+ by_domain.setdefault(mlist.mail_host, []).append(mlist)
sort_key = attrgetter('list_name')
for domain in sorted(by_domain):
for mlist in sorted(by_domain[domain], key=sort_key):
diff --git a/src/mailman/commands/cli_lists.py b/src/mailman/commands/cli_lists.py
index 8acf0c272..a2df63031 100644
--- a/src/mailman/commands/cli_lists.py
+++ b/src/mailman/commands/cli_lists.py
@@ -92,7 +92,7 @@ class Lists:
if args.advertised and not mlist.advertised:
continue
domains = getattr(args, 'domains', None)
- if domains and mlist.host_name not in domains:
+ if domains and mlist.mail_host not in domains:
continue
mailing_lists.append(mlist)
# Maybe no mailing lists matched.