summaryrefslogtreecommitdiff
path: root/src/mailman/interfaces/pending.py
diff options
context:
space:
mode:
authorAurélien Bompard2015-12-16 11:29:27 +0100
committerBarry Warsaw2015-12-16 11:17:30 -0500
commit1f6f1428fa01ea7d3499e3e1234fcd2241295675 (patch)
tree2d944f06b2ed4641dcd73296d486db87d18a785b /src/mailman/interfaces/pending.py
parent564ee293884d794abb8a16995654c1be429db3ce (diff)
downloadmailman-1f6f1428fa01ea7d3499e3e1234fcd2241295675.tar.gz
mailman-1f6f1428fa01ea7d3499e3e1234fcd2241295675.tar.zst
mailman-1f6f1428fa01ea7d3499e3e1234fcd2241295675.zip
Diffstat (limited to 'src/mailman/interfaces/pending.py')
-rw-r--r--src/mailman/interfaces/pending.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mailman/interfaces/pending.py b/src/mailman/interfaces/pending.py
index d71322e77..152946b66 100644
--- a/src/mailman/interfaces/pending.py
+++ b/src/mailman/interfaces/pending.py
@@ -97,6 +97,16 @@ class IPendings(Interface):
def evict():
"""Remove all pended items whose lifetime has expired."""
+ def find(mlist=None, pend_type=None):
+ """Search for the pendables matching the given criteria.
+
+ :param mlist: The MailingList object that the pendables must be
+ related to.
+ :param pend_type: The type of the pendables that are looked for, this
+ corresponds to the `PEND_TYPE` attribute.
+ :return: An iterator over 2-tuples of the form (token, dict).
+ """
+
def __iter__():
"""An iterator over all pendables.