diff options
| author | Barry Warsaw | 2009-06-29 21:30:04 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2009-06-29 21:30:04 -0400 |
| commit | 853060fa5fd453b745b09d991b8053c2024cb079 (patch) | |
| tree | 727e04460a2b2314d3d2d64048a7a9bf29131d25 /src/mailman/database/autorespond.py | |
| parent | cdc95447d97c43f93e8c4b282f150228a5620703 (diff) | |
| download | mailman-853060fa5fd453b745b09d991b8053c2024cb079.tar.gz mailman-853060fa5fd453b745b09d991b8053c2024cb079.tar.zst mailman-853060fa5fd453b745b09d991b8053c2024cb079.zip | |
Diffstat (limited to 'src/mailman/database/autorespond.py')
| -rw-r--r-- | src/mailman/database/autorespond.py | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/mailman/database/autorespond.py b/src/mailman/database/autorespond.py index d65e8ed07..0a84f30e3 100644 --- a/src/mailman/database/autorespond.py +++ b/src/mailman/database/autorespond.py @@ -23,7 +23,6 @@ __metaclass__ = type __all__ = [ 'AutoResponseRecord', 'AutoResponseSet', - 'adapt_mailing_list_to_response_set', ] @@ -92,19 +91,3 @@ class AutoResponseSet: AutoResponseRecord.response_type == response_type) ).order_by(Desc(AutoResponseRecord.date_sent)) return (None if results.count() == 0 else results.first()) - - - -def adapt_mailing_list_to_response_set(iface, obj): - """Adapt an `IMailingList` to an `IAutoResponseSet`. - - :param iface: The interface to adapt to. - :type iface: `zope.interface.Interface` - :param obj: The object being adapted. - :type obj: `IMailingList` - :return: An `IAutoResponseSet` instance if adaptation succeeded or None if - it didn't. - """ - return (AutoResponseSet(obj) - if IMailingList.providedBy(obj) and iface is IAutoResponseSet - else None) |
