Public bug reported:
I'd suggest adding a functionalty which would need a domain as param, and return a list of mailing lists associated with this domain.
This could be used to display a choice of all available domains on this web_host and allow simple deletition of all mailinglists on this domains in case a domain will ever be deleted.
** Affects: mailman Importance: Undecided Status: New
** Affects: mailman.client Importance: Undecided Status: New
** Affects: mailmanwebgsoc2011 Importance: Wishlist Assignee: benste (benste) Status: Triaged
** Tags: mailman3
** Also affects: mailman.client Importance: Undecided Status: New
** Also affects: mailman Importance: Undecided Status: New
** Tags added: mailman3
If we don't fix it for a8 in the core we could add an additional method to the Domain class in _client.py to querry all lists and filter those to only return those which match the web_host
or mail_host :-)
** Changed in: mailmanwebgsoc2011 Status: New => Confirmed
** Changed in: mailmanwebgsoc2011 Status: Confirmed => Triaged
** Changed in: mailmanwebgsoc2011 Importance: Undecided => Wishlist
** Changed in: mailmanwebgsoc2011 Assignee: (unassigned) => benste (benste)
** Changed in: mailman Importance: Undecided => Medium
** Changed in: mailman Status: New => Confirmed
** Changed in: mailman Milestone: None => 3.0.0a8
** Changed in: mailman Assignee: (unassigned) => Barry Warsaw (barry)
** Changed in: mailman Status: Confirmed => In Progress
This is in the engine now, e.g.
http://localhost:9001/3.0/domains/example.com/lists
** Changed in: mailman Status: In Progress => Fix Committed
** Changed in: mailman Status: Fix Committed => Fix Released
** Branch linked: lp:mailman.client
List for a specific domain can be retreived now via the domains `lists`property:
>>> example = client.get_domain(web_host='http://example.com') >>> for mlist in example.lists: ... print mlist <List "test-one@example.com"> <List "test-two@example.com"> <List "test-three@example.com">
** Changed in: mailman.client Status: New => Fix Committed
** Changed in: mailman.client Milestone: None => 1.0.0a1