diff options
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 |
