summaryrefslogtreecommitdiff
path: root/src/mailman/rest/listconf.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix the template name of the welcome message.Barry Warsaw2017-05-241-2/+2
| | | | | | | | | | | | | | | | | We did not previously complete the renaming of the templates. Rename: * user:ack:welcome -> list:user:notice:welcome * user:ack:goodbye -> list:user:notice:goodbye The new names are what are actually used in send_welcome_message() and send_goodbye_message() so the old names were actually never used. NOTE: If you added welcome or goodbye templates through REST from git head, the old names will not be used. Given that this wasn't a feature in 3.0, and the above use case is very unlikely, I've decided not to do a migration. If anybody is affected, the changes can be made manually in withlist. Closes: #337
* Bump copyright years.Barry Warsaw2017-01-041-1/+1
|
* Simplified the various list settings and remamed several things.Mark Sapiro2016-12-261-7/+5
|
* Merged from master.Mark Sapiro2016-12-091-1/+1
|\
| * Use `atpublic` for @public instead of internal copy.Barry Warsaw2016-11-291-1/+1
| |
* | Added new list DMARC attributes to rest/listconf.py and updated tests.Mark Sapiro2016-11-011-5/+13
|/
* REST: allow MailingList.info to be setAurélien Bompard2016-08-301-0/+1
|
* Close #273Barry Warsaw2016-08-231-2/+1
| | | | | A mailing list's ``description`` must not contain newlines. Given by Aurélien Bompard.
* Forbid newlines in MailingList.descriptionAurélien Bompard2016-08-231-1/+9
| | | | Fixes: #273
* New template system. Closes #249Barry Warsaw2016-07-161-20/+71
| | | | | The new template system is introduced for API 3.1. See ``src/mailman/rest/docs/templates.rst`` for details.
* Fix #207Barry Warsaw2016-07-141-0/+7
| | | | | A list's ``moderator_password`` can be set via the REST API. Given by Andrew Breksa.
* Clean up the rest directory.Barry Warsaw2016-03-251-9/+2
|
* Clean up the core directory.Barry Warsaw2016-03-241-3/+2
| | | | | | | mailman/core/errors.py is gone now. We had a duplicate base exception which now always comes from mailman/interfaces/errors.py. Obsolete/unused exceptions are remove. The other exceptions are moved to better locations.
* Exposed goodbye_message_uri attribute through REST API.Harshit Bansal2016-03-031-0/+1
|
* Happy New Year.Barry Warsaw2016-01-021-1/+1
|
* Digests improvements:Barry Warsaw2015-12-191-0/+4
| | | | | | | * digestable -> digests_enabled * nondigestable: removed * Exposed digests_enabled, digest_send_periodic, digest_volume_frequency in REST.
* Fix the error code for a corner case.Barry Warsaw2015-12-171-4/+4
| | | | | | | I.e. when the URL is good, but the request dictionary contains a bogus attribute, you should get a 400 error, not a 404. Also, fix some comments.
* Remove code accidentally pulled in from another branch.Barry Warsaw2015-12-171-2/+0
|
* Many improvements to listconf.py.Barry Warsaw2015-12-171-14/+55
| | | | | | | | | | | | | | | | Closes #182 * Improve the documentation, especially in describing how to PUT and PATCH to list configuration subresources. * Improve the return codes for many error corner cases. Specifically, this makes more consistent when a 400 error is returned or a 404 error is returned. * Improve the handling of some weird corner cases, and add tests. * Fix the setting of error response reasons by not trying to .format() into a bytes object (which isn't allowed in Python 3). * Add lots of comments to the code, which improves the readability of all the twisty little turns. * 100% code coverage for listconf.py!
* adds digest_send_periodic, digest_volume_frequency attributesYashu Seth2015-12-161-0/+2
|
* Trunk mergeBarry Warsaw2015-04-071-10/+3
|\
| * Add lots of test for various bits of domain owners.Barry Warsaw2015-04-061-10/+3
| | | | | | | | | | | | | | | | | | | | A little refactoring of list_of_str() into list_of_strings_validator() which is now put in the validators.py module and used in several places. Python 3 super() style. Add some code and tests to catch <domain>/owners references when <domain> doesn't exist.
* | Advertise the subscription policy in the REST APIAurélien Bompard2015-03-311-1/+3
|/
* We don't need the 'six' package any more.Barry Warsaw2015-01-041-10/+8
|
* Bump copyright years.Barry Warsaw2015-01-041-1/+1
|
* * You can access the system configuration via the resource pathBarry Warsaw2014-12-261-0/+228
``/3.0/system/configuration/<section>``. This returns a dictionary with the keys being the section's variables and the values being their value from ``mailman.cfg`` as verbatim strings. You can get a list of all section names via ``/3.0/system/configuration`` which returns a dictionary containing the ``http_etag`` and the section names as a sorted list under the ``sections`` key. The system configuration resource is read-only.