diff options
| author | J08nY | 2017-07-31 02:34:00 +0200 |
|---|---|---|
| committer | J08nY | 2017-07-31 02:34:00 +0200 |
| commit | a07fe54b768359360bbcd84ea04dfe204637849d (patch) | |
| tree | 7bd8256b8173dac249dbc07c493e6f4bcddb72f4 /src/mailman_pgp/model/list.py | |
| parent | 6d87f5b0c8c7e7a3f71e0c5d5392201b4e4769ff (diff) | |
| download | mailman-pgp-a07fe54b768359360bbcd84ea04dfe204637849d.tar.gz mailman-pgp-a07fe54b768359360bbcd84ea04dfe204637849d.tar.zst mailman-pgp-a07fe54b768359360bbcd84ea04dfe204637849d.zip | |
Diffstat (limited to 'src/mailman_pgp/model/list.py')
| -rw-r--r-- | src/mailman_pgp/model/list.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mailman_pgp/model/list.py b/src/mailman_pgp/model/list.py index a0101a7..8448368 100644 --- a/src/mailman_pgp/model/list.py +++ b/src/mailman_pgp/model/list.py @@ -23,7 +23,7 @@ from os.path import exists, isfile, join from flufl.lock import Lock from mailman.database.types import Enum, SAUnicode from mailman.interfaces.action import Action -from mailman.interfaces.listmanager import IListManager, ListDeletedEvent +from mailman.interfaces.listmanager import (IListManager, ListDeletingEvent) from pgpy import PGPKey from public import public from sqlalchemy import Boolean, Column, Integer @@ -153,9 +153,9 @@ class PGPMailingList(Base): return PGPMailingList.query().filter_by(list_id=mlist.list_id).first() -@classhandler.handler(ListDeletedEvent) -def on_delete(mlist): - pgp_list = PGPMailingList.for_list(mlist) +@classhandler.handler(ListDeletingEvent) +def on_delete(event): + pgp_list = PGPMailingList.for_list(event.mailing_list) if pgp_list: with transaction() as session: # TODO shred the list key |
