summaryrefslogtreecommitdiff
path: root/src/mailman/app
diff options
context:
space:
mode:
authorBarry Warsaw2015-12-22 17:05:17 -0500
committerBarry Warsaw2015-12-22 17:05:17 -0500
commit85521fac12e3c67e10fbc21345e4694f3ab22fe0 (patch)
treedbb9db4e36698b6c8f78954548cd17a95607352b /src/mailman/app
parent8d74a4f3b19928a9c311096aa5b39893ae3fe701 (diff)
downloadmailman-85521fac12e3c67e10fbc21345e4694f3ab22fe0.tar.gz
mailman-85521fac12e3c67e10fbc21345e4694f3ab22fe0.tar.zst
mailman-85521fac12e3c67e10fbc21345e4694f3ab22fe0.zip
Expose the "bump digest" and "send digest" functionality though the REST API
via the ``<api>/lists/<list-id>/digest`` end-point. GETting this resource returns the ``next_digest_number`` and ``volume`` as the same values accessible through the list's configuraiton resource. POSTing to the resource with either ``send=True``, ``bump=True``, or both invokes the given action.
Diffstat (limited to 'src/mailman/app')
-rw-r--r--src/mailman/app/digests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mailman/app/digests.py b/src/mailman/app/digests.py
index 2190fdf98..6ef37a391 100644
--- a/src/mailman/app/digests.py
+++ b/src/mailman/app/digests.py
@@ -73,7 +73,7 @@ def bump_digest_number_and_volume(mlist):
-def maybe_send_digest_now(mlist, force=False):
+def maybe_send_digest_now(mlist, *, force=False):
"""Send this mailing list's digest now.
If there are any messages in this mailing list's digest, the