diff options
| author | Barry Warsaw | 2015-04-15 22:51:39 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2015-04-15 22:51:39 -0400 |
| commit | 08f457799cd36349a4fd22642f4c05b4eabb306d (patch) | |
| tree | c4d2270bce3862e71a252d941e3942860a8c8565 /src/mailman/interfaces | |
| parent | 6c094ce9d81cd5e12ba13c851cbd1018ca3fb935 (diff) | |
| download | mailman-08f457799cd36349a4fd22642f4c05b4eabb306d.tar.gz mailman-08f457799cd36349a4fd22642f4c05b4eabb306d.tar.zst mailman-08f457799cd36349a4fd22642f4c05b4eabb306d.zip | |
Plumb the subscription policy through the REST API.
Diffstat (limited to 'src/mailman/interfaces')
| -rw-r--r-- | src/mailman/interfaces/registrar.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mailman/interfaces/registrar.py b/src/mailman/interfaces/registrar.py index 019ce9d2a..6f049b9d7 100644 --- a/src/mailman/interfaces/registrar.py +++ b/src/mailman/interfaces/registrar.py @@ -77,8 +77,9 @@ class IRegistrar(Interface): :type email: ``IUser`` or ``IAddress`` :return: None if the workflow completes with the member being subscribed. If the workflow is paused for user confirmation or - moderator approval, a 2-tuple is returned where the first element - is a ``TokenOwner`` and the second element is the token hash. + moderator approval, a 3-tuple is returned where the first element + is a ``TokenOwner`` the second element is the token hash, and the + third element is the subscribed member. :rtype: None or 2-tuple of (TokenOwner, str) :raises MembershipIsBannedError: when the address being subscribed appears in the global or list-centric bans. |
