diff options
| author | J08nY | 2017-07-18 00:02:15 +0200 |
|---|---|---|
| committer | J08nY | 2017-07-18 00:04:22 +0200 |
| commit | 33e8fe52ea3dea2afe57af996df3d67dced344f4 (patch) | |
| tree | 5e22fe02ffdf748dc3c33886675ba26e71d01f48 /src/mailman_pgp/plugin.py | |
| parent | b44b55f4cc508c1576870f3ff4b03bf0dab5513e (diff) | |
| download | mailman-pgp-33e8fe52ea3dea2afe57af996df3d67dced344f4.tar.gz mailman-pgp-33e8fe52ea3dea2afe57af996df3d67dced344f4.tar.zst mailman-pgp-33e8fe52ea3dea2afe57af996df3d67dced344f4.zip | |
Diffstat (limited to 'src/mailman_pgp/plugin.py')
| -rw-r--r-- | src/mailman_pgp/plugin.py | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/src/mailman_pgp/plugin.py b/src/mailman_pgp/plugin.py index 2b59236..c33c99d 100644 --- a/src/mailman_pgp/plugin.py +++ b/src/mailman_pgp/plugin.py @@ -17,15 +17,12 @@ """A PGP plugin for GNU Mailman.""" -from mailman.interfaces.listmanager import ListDeletedEvent from mailman.interfaces.plugin import IPlugin from public import public -from zope.event import classhandler from zope.interface import implementer from mailman_pgp.config import config -from mailman_pgp.database import Database, transaction -from mailman_pgp.model.list import PGPMailingList +from mailman_pgp.database import Database from mailman_pgp.pgp import PGP from mailman_pgp.rest.root import RESTRoot @@ -48,12 +45,3 @@ class PGPMailman: def rest_object(self): """See `IPlugin`.""" return RESTRoot() - - -@classhandler.handler(ListDeletedEvent) -def on_delete(mlist): - pgp_list = PGPMailingList.for_list(mlist) - if pgp_list: - with transaction() as session: - # TODO shred the list key - session.delete(pgp_list) |
