aboutsummaryrefslogtreecommitdiff
path: root/src/mailman_pgp/commands/eml_key.py
diff options
context:
space:
mode:
authorJ08nY2017-08-02 17:01:21 +0200
committerJ08nY2017-08-02 17:01:21 +0200
commit2681a5cd91b2563a24cf41b5dafe491bae6106ab (patch)
tree76bdaa4f9e83c750b5a88794a9dacf2174f753a5 /src/mailman_pgp/commands/eml_key.py
parent27b6d62dc288b110fce2d80533cb6c6294370fde (diff)
downloadmailman-pgp-2681a5cd91b2563a24cf41b5dafe491bae6106ab.tar.gz
mailman-pgp-2681a5cd91b2563a24cf41b5dafe491bae6106ab.tar.zst
mailman-pgp-2681a5cd91b2563a24cf41b5dafe491bae6106ab.zip
Diffstat (limited to 'src/mailman_pgp/commands/eml_key.py')
-rw-r--r--src/mailman_pgp/commands/eml_key.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mailman_pgp/commands/eml_key.py b/src/mailman_pgp/commands/eml_key.py
index bea9745..d493108 100644
--- a/src/mailman_pgp/commands/eml_key.py
+++ b/src/mailman_pgp/commands/eml_key.py
@@ -28,6 +28,7 @@ from public import public
from zope.component import getUtility
from zope.interface import implementer
+from mailman_pgp.config import mm_config
from mailman_pgp.database import transaction
from mailman_pgp.model.address import PGPAddress
from mailman_pgp.model.list import PGPMailingList
@@ -236,7 +237,9 @@ def _cmd_change(pgp_list, mlist, msg, msgdata, arguments, results):
file=results)
return ContinueProcessing.no
- workflow = KeyChangeWorkflow(mlist, pgp_address, key)
+ workflow_class = mm_config.workflows[pgp_list.key_change_workflow]
+
+ workflow = workflow_class(mlist, pgp_address, key)
list(workflow)
print('Key change request received.', file=results)
return ContinueProcessing.no