summaryrefslogtreecommitdiff
path: root/src/mailman/interfaces/pending.py
diff options
context:
space:
mode:
authorBarry Warsaw2015-04-16 15:28:06 -0400
committerBarry Warsaw2015-04-16 15:28:06 -0400
commit53d4229bff96677a54fd443322c166c2bdcc3054 (patch)
treeff233bc6fa95d24bc4e66c8192d10c1b87ed2efc /src/mailman/interfaces/pending.py
parentc5e63e32bd713ef6b3ba05cec5cdc4926a44bcc5 (diff)
downloadmailman-53d4229bff96677a54fd443322c166c2bdcc3054.tar.gz
mailman-53d4229bff96677a54fd443322c166c2bdcc3054.tar.zst
mailman-53d4229bff96677a54fd443322c166c2bdcc3054.zip
Diffstat (limited to 'src/mailman/interfaces/pending.py')
-rw-r--r--src/mailman/interfaces/pending.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mailman/interfaces/pending.py b/src/mailman/interfaces/pending.py
index 222f0dfbf..c921123de 100644
--- a/src/mailman/interfaces/pending.py
+++ b/src/mailman/interfaces/pending.py
@@ -95,4 +95,10 @@ class IPendings(Interface):
def evict():
"""Remove all pended items whose lifetime has expired."""
+ def __iter__():
+ """An iterator over all pendables.
+
+ Each element is a 2-tuple of the form (token, dict).
+ """
+
count = Attribute('The number of pendables in the pendings database.')