summaryrefslogtreecommitdiff
path: root/src/mailman/app/subscriptions.py
diff options
context:
space:
mode:
authorBarry Warsaw2015-04-15 18:42:42 -0400
committerBarry Warsaw2015-04-15 18:42:42 -0400
commit6c094ce9d81cd5e12ba13c851cbd1018ca3fb935 (patch)
treedbc158ef696db9c605391044945dc74be1a4edc5 /src/mailman/app/subscriptions.py
parentee6061a2385437bc9d6967ddfaf1514f06cb290a (diff)
downloadmailman-6c094ce9d81cd5e12ba13c851cbd1018ca3fb935.tar.gz
mailman-6c094ce9d81cd5e12ba13c851cbd1018ca3fb935.tar.zst
mailman-6c094ce9d81cd5e12ba13c851cbd1018ca3fb935.zip
Diffstat (limited to 'src/mailman/app/subscriptions.py')
-rw-r--r--src/mailman/app/subscriptions.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mailman/app/subscriptions.py b/src/mailman/app/subscriptions.py
index 669a32432..aa9d600bf 100644
--- a/src/mailman/app/subscriptions.py
+++ b/src/mailman/app/subscriptions.py
@@ -103,6 +103,7 @@ class SubscriptionWorkflow(Workflow):
self.address = None
self.user = None
self.which = None
+ self.member = None
self._set_token(TokenOwner.no_one)
# The subscriber must be either an IUser or IAddress.
if IAddress.providedBy(subscriber):
@@ -285,7 +286,7 @@ class SubscriptionWorkflow(Workflow):
def _step_do_subscription(self):
# We can immediately subscribe the user to the mailing list.
- self.mlist.subscribe(self.subscriber)
+ self.member = self.mlist.subscribe(self.subscriber)
# This workflow is done so throw away any associated state.
getUtility(IWorkflowStateManager).restore(self.name, self.token)