summaryrefslogtreecommitdiff
path: root/src/mailman/rest (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Major push for completing issue #121. Now in API 3.1, all UUIDs must be theBarry Warsaw2015-12-3014-75/+490
| | | | | | | | | hex representations of a UUID, not the int representation. Also: * Some general code cleanup. * Fix issue 185 (REST server crash when subscribing a user without a preferred address).
* Bump coverage to 100%Barry Warsaw2015-12-222-4/+39
|
* Expose the "bump digest" and "send digest" functionality though the REST APIBarry Warsaw2015-12-223-5/+228
| | | | | | | via the ``<api>/lists/<list-id>/digest`` end-point. GETting this resource returns the ``next_digest_number`` and ``volume`` as the same values accessible through the list's configuraiton resource. POSTing to the resource with either ``send=True``, ``bump=True``, or both invokes the given action.
* Digests improvements:Barry Warsaw2015-12-193-3/+136
| | | | | | | * 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-172-7/+7
| | | | | | | 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-172-10/+0
|
* Many improvements to listconf.py.Barry Warsaw2015-12-173-64/+304
| | | | | | | | | | | | | | | | 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 tests for new digest attributesYashu Seth2015-12-161-0/+2
|
* adds digest_send_periodic, digest_volume_frequency attributesYashu Seth2015-12-161-0/+2
|
* Fix a leftover type argumentAurélien Bompard2015-12-161-1/+1
|
* Update the REST query to use the find() methodAurélien Bompard2015-12-161-16/+3
|
* Make sure that Pendables always have a typeAurélien Bompard2015-12-161-0/+2
|
* _resource_as_dict() may not return None.Barry Warsaw2015-12-124-3/+9
| | | | Add some assertions to prove this is always the case.
* Allow a Member's moderation_action to be changed by the REST API.Aurélien Bompard2015-12-084-5/+100
| | | | Cleanups by Barry. Closes !67
* When deleting an Address, dependencies must be deleted firstAurélien Bompard2015-11-211-6/+0
| | | | | SQLite doesn't not enforce foreign key constraints, but PostgreSQL does, and without this fix, IntegrityErrors get raised.
* Sort the JSON output when [devmode]enabled is true.Barry Warsaw2015-11-211-1/+1
|
* Sort the JSON keys in dev modeAurélien Bompard2015-11-211-1/+2
| | | | This makes it much easier to compare VCR tapes.
* JSON representations for held message now include a ``self_link``.Barry Warsaw2015-11-152-7/+10
|
* REST: add a self_link entry to held messagesAurélien Bompard2015-11-152-1/+6
|
* * Add NEWS and a missing _all__ key.Barry Warsaw2015-11-061-4/+6
| | | | * Wrap paragraph.
* Rework pagination to fix the 'start' and 'total_size' valuesAurélien Bompard2015-11-0410-109/+95
|
* Add another code-path test.Barry Warsaw2015-09-231-0/+40
|
* Implement the REST API for <api>/owners.Barry Warsaw2015-09-233-3/+46
|
* Start of owners top level resource.Barry Warsaw2015-09-231-0/+8
|
* Document an attribute.Barry Warsaw2015-09-231-0/+61
| | | | Add a doctest for the `owners` top-level resource.
* Refine REST server and request handler exception handling.Barry Warsaw2015-08-241-3/+8
|
* When the client hangs up, we can't actually catch the BrokenPipeError becauseBarry Warsaw2015-08-231-1/+22
| | | | | | of the way Python stdlib's wsgiref.simple_server is structured. However, we can ensure that the error messages won't get printed to stderr, but to our http log file instead.
* Merge branch 'maxking/mailman-add-alternate' into mr30Barry Warsaw2015-07-312-3/+53
|\ | | | | | | | | By POSTing to a user resource with an existing unlinked address, you can link the address to the user. Given by Abhilash Raj.
| * Add an unlinked address to a user via RESTAbhilash Raj2015-07-302-2/+29
|/ | | | | When adding an existing address through REST API, a 400 error was raised even if the address was not linked to any user. Fix that.
* Clean up based on review.Barry Warsaw2015-07-183-2/+3
|
* * REST API version 3.1 introduced. Mostly backward compatible with versionBarry Warsaw2015-07-1814-55/+155
| | | | | | 3.0 except that UUIDs are represented as hex strings instead of 128-bit integers, since the latter are not compatible with all versions of JavaScript.
* Fixes #136 on the 3.0 maintenance branch.Barry Warsaw2015-07-132-1/+28
| | | | | * The REST API incorrectly parsed `is_server_owner` values when given explicitly in the POST that creates a user. (Closes #136)
* * Messages now include a `Message-ID-Hash` as the replacement forBarry Warsaw2015-06-142-4/+8
| | | | | | `X-Message-ID-Hash` although the latter is still included for backward compatibility. Also be sure that all places which add the header use the same algorithm.
* Merge branch 'issue-109' into 'release-3.0'Barry Warsaw2015-06-022-6/+8
| | | | | | | | | | | Closes: #109 * Fix the traceback that occurred when trying to convert a `text/html` subpart to plaintext via the `mimedel` handler. Now, a configuration variable `[mailman]html_to_plain_text_command` in the `mailman.cfg` file defines the command to use. It defaults to `lynx`. (Closes: #109) See merge request !14
* * When creating a user via REST using an address that already exists, butBarry Warsaw2015-05-103-6/+82
| | | | | isn't linked, the address is linked to the new user. Given by Aurélien Bompard.
* * The default languages from Mailman 2.1 have been ported over. Given byBarry Warsaw2015-05-071-0/+35
| | | | Aurélien Bompard.
* Prepare for 3.1.Barry Warsaw2015-05-011-1/+1
| | | | Fix some tests that incorrectly hardcoded "3.0"
* Port to Falcon 0.3.Barry Warsaw2015-04-231-3/+5
|
* raj-abhilash1's branch to ensure we block release on Falcon 0.3. I moved andBarry Warsaw2015-04-211-0/+53
|\ | | | | | | | | | | renamed his test. Also, backfill a relevant Launchpad bug number.
| * merge trunk and fix merge conflictsAbhilash Raj2015-04-2015-648/+923
| |\ | |/ |/|
* | Branch his ready.Barry Warsaw2015-04-173-13/+58
| |
* | Check pointing new subscription moderation REST API.Barry Warsaw2015-04-174-88/+141
| |
* | Updates.Barry Warsaw2015-04-162-36/+10
| |
* | Checkpointing.Barry Warsaw2015-04-162-0/+268
| |
* | Checkpointing.Barry Warsaw2015-04-165-514/+370
| |
* | Plumb the subscription policy through the REST API.Barry Warsaw2015-04-155-132/+173
| |
* | A better email validator which actually validates the email address.Barry Warsaw2015-04-152-2/+22
| |
* | Add a test for a reported (but non-reproducible) failure patching a mailing ↵Barry Warsaw2015-04-151-1/+19
| | | | | | | | list's subscription policy.
| * mark the test as an expected failureAbhilash Raj2015-04-161-0/+1
| |
| * Add test case to check a bug in falcon's Request classAbhilash Raj2015-04-161-0/+8
|/