diff options
| author | J08nY | 2017-08-02 17:01:21 +0200 |
|---|---|---|
| committer | J08nY | 2017-08-02 17:01:21 +0200 |
| commit | 2681a5cd91b2563a24cf41b5dafe491bae6106ab (patch) | |
| tree | 76bdaa4f9e83c750b5a88794a9dacf2174f753a5 /src/mailman_pgp/commands/eml_key.py | |
| parent | 27b6d62dc288b110fce2d80533cb6c6294370fde (diff) | |
| download | mailman-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.py | 5 |
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 |
