diff options
| author | Barry Warsaw | 2007-10-31 17:38:51 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2007-10-31 17:38:51 -0400 |
| commit | f321d85d91a370294e771dbaa22493008d78dfdd (patch) | |
| tree | 8cf4c3e7cab70ccc9059f147ff1bf4b3bf150115 /Mailman/interfaces/pending.py | |
| parent | 1ad73a52bb9d82ef3af1e34ad9ef66ac2eda2909 (diff) | |
| download | mailman-f321d85d91a370294e771dbaa22493008d78dfdd.tar.gz mailman-f321d85d91a370294e771dbaa22493008d78dfdd.tar.zst mailman-f321d85d91a370294e771dbaa22493008d78dfdd.zip | |
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): |
