diff options
Diffstat (limited to 'Mailman/interfaces/pending.py')
| -rw-r--r-- | Mailman/interfaces/pending.py | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/Mailman/interfaces/pending.py b/Mailman/interfaces/pending.py index 68a4c41de..22d18a07c 100644 --- a/Mailman/interfaces/pending.py +++ b/Mailman/interfaces/pending.py @@ -40,10 +40,28 @@ class IPendable(Interface): Both the keys and values must be strings. """ - + + + +class IPended(Interface): + """A pended event, tied to a token.""" + + token = Attribute("""The pended token.""") + + expiration_date = Attribute("""The expiration date of the pended event.""") + + + +class IPendedKeyValue(Interface): + """A pended key/value pair.""" + + key = Attribute("""The pended key.""") + + value = Attribute("""The pended value.""") + -class IPending(Interface): +class IPendings(Interface): """Interface to pending database.""" def add(pendable, lifetime=None): |
