summaryrefslogtreecommitdiff
path: root/src/mailman/chains/hold.py
diff options
context:
space:
mode:
authorAurélien Bompard2015-12-02 10:30:59 +0100
committerBarry Warsaw2015-12-16 11:04:25 -0500
commit30611aa0d445bc5e19ce37f6b01289f9cc2b7f0b (patch)
tree2bebcd25549b9f8200137f1c49483828d65a88ef /src/mailman/chains/hold.py
parented9efb350c7629be2b8f1fe509c74e5dca6935f0 (diff)
downloadmailman-30611aa0d445bc5e19ce37f6b01289f9cc2b7f0b.tar.gz
mailman-30611aa0d445bc5e19ce37f6b01289f9cc2b7f0b.tar.zst
mailman-30611aa0d445bc5e19ce37f6b01289f9cc2b7f0b.zip
Diffstat (limited to 'src/mailman/chains/hold.py')
-rw-r--r--src/mailman/chains/hold.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mailman/chains/hold.py b/src/mailman/chains/hold.py
index 15219c8ec..3b0c5d24c 100644
--- a/src/mailman/chains/hold.py
+++ b/src/mailman/chains/hold.py
@@ -55,7 +55,7 @@ log = logging.getLogger('mailman.vette')
@implementer(IPendable)
class HeldMessagePendable(dict):
- PEND_KEY = 'held message'
+ PEND_TYPE = 'held message'
@@ -149,8 +149,7 @@ class HoldChain(TerminalChainBase):
request_id = hold_message(mlist, msg, msgdata, None)
# Calculate a confirmation token to send to the author of the
# message.
- pendable = HeldMessagePendable(type=HeldMessagePendable.PEND_KEY,
- id=request_id)
+ pendable = HeldMessagePendable(id=request_id)
token = getUtility(IPendings).add(pendable)
# Get the language to send the response in. If the sender is a
# member, then send it in the member's language, otherwise send it in