summaryrefslogtreecommitdiff
path: root/src/mailman/app/docs/moderator.rst (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Simplify the implementation.Barry Warsaw2016-10-171-2/+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.
* Another fix.Barry Warsaw2016-09-161-3/+3
|
* New template system. Closes #249Barry Warsaw2016-07-161-3/+3
| | | | | The new template system is introduced for API 3.1. See ``src/mailman/rest/docs/templates.rst`` for details.
* Fix cross-posting held on more than one list.Barry Warsaw2016-03-081-30/+6
| | | | | | | | | | | Closes #176 Also: * IMessageStore no longer raises a ValueError if the Message-ID already exists in the store; it just returns None. * The internal handle_message() function no longer takes a `preserve` argument, since messages are never removed from the IMessageStore.
* Make sure that Pendables always have a typeAurélien Bompard2015-12-161-0/+1
|
* Remove old APIs handle_subscription() and hold_subscription().Barry Warsaw2015-05-021-122/+61
|
* Fix regression.Barry Warsaw2015-04-131-1/+0
|
* * Refactor add_member() so that it uses a RequestRecord namedtuple.Barry Warsaw2015-03-211-12/+18
| | | | | | * 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`.
* Merge abompard's fixes to the Postgres test suite.Barry Warsaw2014-10-301-43/+34
|
* Use print functions consistently through, and update all __future__ imports toBarry Warsaw2014-04-281-23/+23
| | | | | | | | reflect this. Also, mock out sys.stderr on some tests so that their nose2 output is quieter. A few other minor coding style consistencies.
* * Fill out the documentation on moderation notifications.Barry Warsaw2012-12-171-84/+164
| | | | * Fix LP: 1091321; typo in send_goodbye_message().
* Fix cross-references.Barry Warsaw2012-12-171-2/+2
|
* * Simplify moderator.rst and requests.rst so they serve a better purpose asBarry Warsaw2012-12-171-0/+458
documentation. Move non-documentation tests into a separate unittest file. * Separate out the doctests for IRequest from the doctests for app/moderator.py and place the latter in a separate file. * Fix typo in app/membership.py (s/send_goodbye_msg/send_goodbye_message), but LP: #1091321 tracks more needed fixes in this area.