diff options
| author | J08nY | 2017-08-07 19:00:49 +0200 |
|---|---|---|
| committer | J08nY | 2017-08-07 19:00:49 +0200 |
| commit | ee9da27283ffb7adc836f764f1442cd06e3fb2a5 (patch) | |
| tree | 2b687f39714580b1de70baf9e3dd9957326c4989 /src/mailman/commands/docs | |
| parent | d107fd41f03b57f7731b60bb7ba921febc3ce3b9 (diff) | |
| parent | b902d7858d8302d248add89a5983c521c3581c4c (diff) | |
| download | mailman-plugin.tar.gz mailman-plugin.tar.zst mailman-plugin.zip | |
Diffstat (limited to 'src/mailman/commands/docs')
| -rw-r--r-- | src/mailman/commands/docs/membership.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mailman/commands/docs/membership.rst b/src/mailman/commands/docs/membership.rst index 18c473c5b..e1266d690 100644 --- a/src/mailman/commands/docs/membership.rst +++ b/src/mailman/commands/docs/membership.rst @@ -221,9 +221,9 @@ to leave it. Because the mailing list allows for *open* unsubscriptions (i.e. no confirmation is needed), when she sends a message to the ``-leave`` address for the list, she is immediately removed. - >>> from mailman.interfaces.mailinglist import SubscriptionPolicy - >>> mlist_2.unsubscription_policy = SubscriptionPolicy.open - >>> mlist.unsubscription_policy = SubscriptionPolicy.open + >>> from mailman.workflows.unsubscription import OpenUnsubscriptionPolicy + >>> mlist_2.unsubscription_policy = OpenUnsubscriptionPolicy + >>> mlist.unsubscription_policy = OpenUnsubscriptionPolicy >>> results = Results() >>> print(leave.process(mlist_2, msg, {}, (), results)) ContinueProcessing.yes |
