diff options
| author | Barry Warsaw | 2016-03-25 11:01:46 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2016-03-25 11:01:46 -0400 |
| commit | 7fd9e5ab09b0da347da0607b47d2d3838bd80f0c (patch) | |
| tree | b150f85e5fc482f45e973a233b5184d3ca4b78a7 /src/mailman/model/requests.py | |
| parent | 71ebe367a52316811f570d09f2213c192a47973f (diff) | |
| download | mailman-7fd9e5ab09b0da347da0607b47d2d3838bd80f0c.tar.gz mailman-7fd9e5ab09b0da347da0607b47d2d3838bd80f0c.tar.zst mailman-7fd9e5ab09b0da347da0607b47d2d3838bd80f0c.zip | |
Diffstat (limited to 'src/mailman/model/requests.py')
| -rw-r--r-- | src/mailman/model/requests.py | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/mailman/model/requests.py b/src/mailman/model/requests.py index 341233280..f7f42f37e 100644 --- a/src/mailman/model/requests.py +++ b/src/mailman/model/requests.py @@ -17,13 +17,8 @@ """Implementations of the pending requests interfaces.""" -__all__ = [ - 'DataPendable', - 'ListRequests', - ] - - from datetime import timedelta +from mailman import public from mailman.database.model import Model from mailman.database.transaction import dbconnection from mailman.database.types import Enum @@ -37,7 +32,7 @@ from zope.component import getUtility from zope.interface import implementer - +@public @implementer(IPendable) class DataPendable(dict): """See `IPendable`.""" @@ -59,7 +54,7 @@ class DataPendable(dict): super().update(clean_mapping) - +@public @implementer(IListRequests) class ListRequests: """See `IListRequests`.""" @@ -144,7 +139,6 @@ class ListRequests: store.delete(request) - class _Request(Model): """Table for mailing list hold requests.""" |
