summaryrefslogtreecommitdiff
path: root/src/mailman/runners/docs/command.rst (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix doctests to properly set unsubscription_policy = SubscriptionPolicy.openMark Sapiro2016-10-251-1/+1
| | | | where needed.
* Simplify the implementation.Barry Warsaw2016-10-171-2/+1
| | | | | | | | | | | | | | | | | | | | | | 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 test fix.Barry Warsaw2016-09-161-9/+11
|
* A few more changes.Barry Warsaw2016-09-081-3/+5
|
* Plumb the subscription policy through the REST API.Barry Warsaw2015-04-151-1/+1
|
* Prevent replay attacks with the confirmation token.Barry Warsaw2015-04-151-2/+2
|
* Full test suite passes.Barry Warsaw2015-04-141-0/+1
| | | | | | | | | | | | | * Make sure Registrar.discard() removces any workflow state manager state associated with the token, and that this is flushed to SA. * Adjust the email commands to the new IRegistrar API. * Update the IRegistrar interface. * Add IWorkflowStateManager.discard() and make `count` an attribute/property. * Mark two tests as expected failures due to LP: #1444184.
* Checkpointing.Barry Warsaw2015-04-141-3/+1
|
* * ``$cwd`` is now an additional substitution variable for the ``mailman.cfg``Barry Warsaw2015-01-031-7/+10
| | | | | | | | | | | | | file's ``[paths.*]`` sections. A new ``[paths.here]`` section is added, which puts the ``var_dir`` in ``$cwd``. It is made the default layout. * You can now view the contents of, inject messages into, and delete messages from the various queue directories via the ``<api>/queues`` resource. Also: inject_message() and inject_text() now return the filebase of the file injected into the queue directory.
* More test repair.Barry Warsaw2014-12-151-2/+2
|
* Use print functions consistently through, and update all __future__ imports toBarry Warsaw2014-04-281-7/+7
| | | | | | | | reflect this. Also, mock out sys.stderr on some tests so that their nose2 output is quieter. A few other minor coding style consistencies.
* * A welcome message is sent when the user confirms their subscription viaBarry Warsaw2012-03-041-27/+34
| | | | | | | | | | email. Also: - The user's Full Name is included on the To line of a welcome message. - Clean up some tests. - The welcome_message_uri for lists using the default style is set to mailman:///welcome.txt so a welcome message is sent by default.
* Finally, all doctests are named .rstBarry Warsaw2011-09-231-0/+289