summaryrefslogtreecommitdiff
path: root/src/mailman/rest/docs/moderation.rst
Commit message (Collapse)AuthorAgeFilesLines
* Checkpointing.Barry Warsaw2015-04-161-361/+0
|
* Replace add_member() with subscribe() helper.Barry Warsaw2015-03-261-3/+2
|
* * Refactor add_member() so that it uses a RequestRecord namedtuple.Barry Warsaw2015-03-211-12/+12
| | | | | | * RequestRecord contains no password key so these are not part of the held requests database any more. * Pending record contains `email` now instead of `address`.
* All the REST tests pass.Barry Warsaw2014-12-151-7/+0
|
* Merge abompard's fixes to the Postgres test suite.Barry Warsaw2014-10-301-17/+15
|
* Use print functions consistently through, and update all __future__ imports toBarry Warsaw2014-04-281-5/+5
| | | | | | | | reflect this. Also, mock out sys.stderr on some tests so that their nose2 output is quieter. A few other minor coding style consistencies.
* Complete the exposure of subscription request moderation via REST (still needsBarry Warsaw2012-12-161-37/+134
| | | | | | | | | | | | | | | | | | a clean up pass and thorough unit testing). * Insert the RequestType enum name into the data dictionary returned by get_request(). Otherwise, there's really no good way to get that information, which several APIs need. * Flatten the data dictionary returned by held message JSON representations, into the JSON dictionary itself. Do a filtering and rename pass on the keys. - rename 'id' to 'request_id' - remove the redundant 'key' * Refactor some common stuff into _ModerationBase, although more refactoring is coming.
* Expose held subscription/unsubscription requests via the API.Barry Warsaw2012-12-151-4/+90
| | | | | | * hold_subscription(): Don't str(mode) to get a string representation, just mode.name since we know it is a DeliveryMode. This means we don't need to split the value later in handle_subscription().
* Flesh out the moderation doctest.Barry Warsaw2012-01-301-9/+66
|
* * Held messages can now be moderated through the REST API. Mailing listBarry Warsaw2012-01-301-0/+131
resources now accept a `held` path component. GETing this returns all held messages for the mailing list. POSTing to a specific request id under this url can dispose of the message using `Action` enums. * `IRequests` interface is removed. Now just use adaptation from `IListRequests` directly (which takes an `IMailingList` object). * `handle_message()` now allows for `Action.hold` which is synonymous with `Action.defer` (since the message is already being held). * `IListRequests.get_request()` now takes an optional `request_type` argument to narrow the search for the given request. - also, print_function is now a standard __future__ import. The template has been updated, but add this to modules as you edit them.