summaryrefslogtreecommitdiff
path: root/src/mailman/model/docs/subscriptions.rst
Commit message (Collapse)AuthorAgeFilesLines
* Migrate the [un]subscription_policy attribute.J08nY2017-08-071-5/+8
| | | | | | | | | - This is quite a huge commit, since it changes the type of the MailingList.subscription_policy and unsubscription_policy attributes to the new names of pluggable workflows, in all occurences. - Also adds a migration to migrate the attributes to the new types. - Adds tests for the migration.
* 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.
* Collapse two doctests into one.Barry Warsaw2016-09-111-5/+148
| | | | Also, fix the return value of .unregister(), and make the tests pass.
* Add NEWS, tweak an interface, and rewrite a unit test.Barry Warsaw2016-04-181-5/+26
|
* Extend ISubscriptionService interface.Harshit Bansal2016-04-181-0/+55
| | | | | | Add documentation. Extend ISubscriptionService interface.
* Add NEWS and tweak.Barry Warsaw2016-01-131-1/+1
|
* Allow fuzz search for members in SubscriptionServiceAurélien Bompard2016-01-131-0/+16
|
* Refactor some tests and documentation.Barry Warsaw2016-01-071-0/+195
Increase coverage. Add ISubscriptionService.find_member() as per discussion.