summaryrefslogtreecommitdiff
path: root/src/mailman/rest/sub_moderation.py
Commit message (Collapse)AuthorAgeFilesLines
* Bump copyright years.Barry Warsaw2017-01-041-1/+1
|
* Use `atpublic` for @public instead of internal copy.Barry Warsaw2016-11-291-1/+1
|
* Simplify the implementation.Barry Warsaw2016-10-171-3/+2
| | | | | | | | | | | | | | | | | | | | | | This merges the SubscriptionManager and UnsubscriptionManager into a single SubscriptionManager implementation that handles both register() and unregister(). This allows us to use direct class-based adaptation instead of the more clunky getAdapter() API. We can also eliminate the funky _get_workflow() implementation detail. This has a couple of side-effects. .confirm() must lookup the token in the pendings database and pull out the pending type, dispatching to the proper class depending on the type, or raising a LookupError if the token is None or there is no pendable associated with the given token. This feels like an acceptable trade-off. However, this *also* means that IWorkflowStateManager must lose its 'name' argument in its methods. That's because we won't actually know the name until its too late. Honestly, the name wasn't providing much value anyway (it was always the subclass's name), so losing that seems fine too. The complication here is that the name was a primary key in the 'workflowstate' table, so we need to add its removal in the database migration.
* IWorkflowManager -> ISubscriptionManagerBarry Warsaw2016-09-011-2/+2
|
* CheckpointingBarry Warsaw2016-09-011-2/+1
|
* Intermediate CommitAbhilash Raj2016-09-011-3/+5
|
* New template system. Closes #249Barry Warsaw2016-07-161-1/+1
| | | | | The new template system is introduced for API 3.1. See ``src/mailman/rest/docs/templates.rst`` for details.
* API consistency.Barry Warsaw2016-04-031-1/+1
|
* Clean up the rest directory.Barry Warsaw2016-03-251-8/+3
|
* Handle AlreadySubscribedError in REST.Barry Warsaw2016-02-151-1/+5
| | | | | | | | When approving a subscription request via the REST API, for a user who is already a member, return an HTTP 409 Conflict code instead of the previous server traceback (and resulting HTTP 500 code). Closes #193
* More coverage.Barry Warsaw2016-01-041-2/+3
|
* Happy New Year.Barry Warsaw2016-01-021-1/+1
|
* 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
|
* _resource_as_dict() may not return None.Barry Warsaw2015-12-121-0/+1
| | | | Add some assertions to prove this is always the case.
* Branch his ready.Barry Warsaw2015-04-171-2/+12
|
* Check pointing new subscription moderation REST API.Barry Warsaw2015-04-171-40/+49
|
* Updates.Barry Warsaw2015-04-161-34/+8
|
* Checkpointing.Barry Warsaw2015-04-161-0/+155