Abhilash Raj pushed to branch master at GNU Mailman / Mailman Core
Commits: 22270007 by Abhilash Raj at 2018-07-22T03:12:14Z Add description to list so that Postorius doesn't poll for every list. Add description to list object so that Postorius doesn't have to Poll the description for every single list, one by one. - - - - - 6aecc2d6 by Abhilash Raj at 2018-07-26T03:05:10Z Merge branch 'add-desc' into 'master' Add description to List so that Postorius doesn't poll for every list. See merge request mailman/mailman!405 - - - - - 4 changed files: - src/mailman/rest/docs/collections.rst - src/mailman/rest/docs/domains.rst - src/mailman/rest/docs/lists.rst - src/mailman/rest/lists.py Changes: ===================================== src/mailman/rest/docs/collections.rst ===================================== @@ -78,9 +78,11 @@ the collection the page starts on. >>> dump_json('http://localhost:9001/3.0/lists?count=2&page=15') entry 0: + ... display_name: List28 ... entry 1: + ... display_name: List29 ... http_etag: ... ===================================== src/mailman/rest/docs/domains.rst ===================================== @@ -121,6 +121,7 @@ example.com domain does not contain any mailing lists. >>> dump_json('http://localhost:9001/3.0/domains/example.com/lists') entry 0: + description: display_name: Test-domains fqdn_listname: test-doma...@example.com http_etag: "..." ===================================== src/mailman/rest/docs/lists.rst ===================================== @@ -19,6 +19,7 @@ Create a mailing list in a domain and it's accessible via the API. >>> dump_json('http://localhost:9001/3.0/lists') entry 0: + description: display_name: Ant fqdn_listname: a...@example.com http_etag: "..." @@ -36,6 +37,7 @@ You can also query for lists from a particular domain. >>> dump_json('http://localhost:9001/3.0/domains/example.com/lists') entry 0: + description: display_name: Ant fqdn_listname: a...@example.com http_etag: "..." @@ -81,7 +83,7 @@ The same applies to lists from a particular domain. Finding Lists ------------- .. Don't send welcome message when subscribing some people. - >>> mlist.send_welcome_message = False + >>> mlist.send_welcome_message = False You can find a specific list based on their subscribers and their roles. For @@ -98,6 +100,7 @@ example, we can search for all related lists of a particular address.:: >>> dump_json('http://localhost:9001/3.1/lists/find', { ... 'subscriber': 'g...@example.com'}) entry 0: + description: display_name: Elk fqdn_listname: e...@example.com http_etag: "..." @@ -122,6 +125,7 @@ You can filter lists based on specific roles of a subscriber too.:: ... 'subscriber': 'ow...@example.com', ... 'role':'owner'}) entry 0: + description: display_name: Elk fqdn_listname: e...@example.com http_etag: "..." @@ -148,6 +152,7 @@ page. >>> dump_json('http://localhost:9001/3.0/domains/example.com/lists' ... '?count=1&page=1') entry 0: + description: display_name: Ant fqdn_listname: a...@example.com http_etag: "..." @@ -164,6 +169,7 @@ page. >>> dump_json('http://localhost:9001/3.0/domains/example.com/lists' ... '?count=1&page=2') entry 0: + description: display_name: Elk fqdn_listname: e...@example.com http_etag: "..." @@ -215,6 +221,7 @@ The mailing list was created using the default style, which allows list posts. It is also available in the REST API via the location given in the response. >>> dump_json('http://localhost:9001/3.0/lists/bee.example.com') + description: display_name: Bee fqdn_listname: b...@example.com http_etag: "..." @@ -231,6 +238,7 @@ address, if that has never been changed (since the list-id is immutable, but the posting address is not). >>> dump_json('http://localhost:9001/3.0/lists/b...@example.com') + description: display_name: Bee fqdn_listname: b...@example.com http_etag: "..." ===================================== src/mailman/rest/lists.py ===================================== @@ -105,6 +105,7 @@ class _ListBase(CollectionMixin): mail_host=mlist.mail_host, member_count=mlist.members.member_count, volume=mlist.volume, + description=mlist.description, self_link=self.api.path_to('lists/{}'.format(mlist.list_id)), ) View it on GitLab: https://gitlab.com/mailman/mailman/compare/eda6499ad17ff28d3c12b5423de782568fa6e63f...6aecc2d65dd37d06fac640dae62dc45c16901516 -- View it on GitLab: https://gitlab.com/mailman/mailman/compare/eda6499ad17ff28d3c12b5423de782568fa6e63f...6aecc2d65dd37d06fac640dae62dc45c16901516 You're receiving this email because of your account on gitlab.com.
_______________________________________________ Mailman-checkins mailing list Mailman-checkins@python.org Unsubscribe: https://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org