summaryrefslogtreecommitdiff
path: root/Mailman/Handlers/Hold.py
diff options
context:
space:
mode:
authorBarry Warsaw2007-08-02 10:47:56 -0400
committerBarry Warsaw2007-08-02 10:47:56 -0400
commitec734fab4791c107610caf73931e570b2d1b6bd0 (patch)
tree72f27a494449a58b671ad39e5315cee5c29f64c2 /Mailman/Handlers/Hold.py
parentb2ce38ca3bf73010794860e969f6006ce632f151 (diff)
downloadmailman-ec734fab4791c107610caf73931e570b2d1b6bd0.tar.gz
mailman-ec734fab4791c107610caf73931e570b2d1b6bd0.tar.zst
mailman-ec734fab4791c107610caf73931e570b2d1b6bd0.zip
Diffstat (limited to 'Mailman/Handlers/Hold.py')
-rw-r--r--Mailman/Handlers/Hold.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Mailman/Handlers/Hold.py b/Mailman/Handlers/Hold.py
index 0db0a5c94..5c4144f47 100644
--- a/Mailman/Handlers/Hold.py
+++ b/Mailman/Handlers/Hold.py
@@ -42,7 +42,7 @@ from Mailman import Message
from Mailman import Utils
from Mailman import i18n
from Mailman.configuration import config
-from Mailman.interfaces import IPendable, IPending
+from Mailman.interfaces import IPendable
log = logging.getLogger('mailman.vette')
@@ -249,7 +249,7 @@ def hold_for_approval(mlist, msg, msgdata, exc):
# bounce processing that might be needed.
pendable = HeldMessagePendable(type=HeldMessagePendable.PEND_KEY,
id=str(id))
- token = IPending(config.db).add(pendable)
+ token = config.db.pendings.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 the mailing
# list's preferred language.