summaryrefslogtreecommitdiff
path: root/src/mailman/chains/hold.py
diff options
context:
space:
mode:
authorBarry Warsaw2015-12-16 15:14:32 -0500
committerBarry Warsaw2015-12-16 15:14:32 -0500
commit1ebb7654978939d3ae549956b7b45ef0ea0a983a (patch)
tree116baf4b4c5663efea47346bd7e67c6e3e18d997 /src/mailman/chains/hold.py
parent33a64ede9aa2a6b6c5ebbbbbfbf789bc4d41e3f2 (diff)
parentff84c2bb24555d4ae6276b1dca7071b440172bdb (diff)
downloadmailman-1ebb7654978939d3ae549956b7b45ef0ea0a983a.tar.gz
mailman-1ebb7654978939d3ae549956b7b45ef0ea0a983a.tar.zst
mailman-1ebb7654978939d3ae549956b7b45ef0ea0a983a.zip
Optimize pendings.
Closes !68
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