summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBarry Warsaw2016-04-30 18:18:32 -0400
committerBarry Warsaw2016-04-30 18:18:32 -0400
commit9150dac0b5e7a959cbac121762b86f1de39cab99 (patch)
tree169b0ec983eb27b7c698ba1d9662ccfb11dbc4a4 /src
parent3b8841d92997ea82006c379840337151bed0f44c (diff)
downloadmailman-9150dac0b5e7a959cbac121762b86f1de39cab99.tar.gz
mailman-9150dac0b5e7a959cbac121762b86f1de39cab99.tar.zst
mailman-9150dac0b5e7a959cbac121762b86f1de39cab99.zip
Some fixes.
Diffstat (limited to 'src')
-rw-r--r--src/mailman/docs/CONTRIBUTE.rst4
-rw-r--r--src/mailman/rest/docs/membership.rst1
2 files changed, 5 insertions, 0 deletions
diff --git a/src/mailman/docs/CONTRIBUTE.rst b/src/mailman/docs/CONTRIBUTE.rst
index 12dc59b3c..f1d540f33 100644
--- a/src/mailman/docs/CONTRIBUTE.rst
+++ b/src/mailman/docs/CONTRIBUTE.rst
@@ -216,6 +216,10 @@ use them. They can be imported from the modules available in
``mailman.testing``. For example, to use ``dump_list`` you first need to
import it from the ``mailman.testing.documentation`` module.
+.. Of course, *this* doctest doesn't have these preloaded...
+ >>> from zope.component import getUtility
+ >>> from mailman.interfaces.listmanager import IListManager
+
The shell automatically initializes the Mailman system, loads all the
available interfaces, and configures the `Zope Component Architecture`_ (ZCA)
which is used to access all the software components in Mailman. So for
diff --git a/src/mailman/rest/docs/membership.rst b/src/mailman/rest/docs/membership.rst
index e19fa4623..df49621f0 100644
--- a/src/mailman/rest/docs/membership.rst
+++ b/src/mailman/rest/docs/membership.rst
@@ -1063,6 +1063,7 @@ Mass Unsubscriptions
A batch of users can be unsubscribed from the mailing list via the REST API
just by supplying their email addresses.
::
+
>>> cat = create_list('cat@example.com')
>>> subscribe(cat, 'Isla')
<Member: Isla Person <iperson@example.com> on