diff options
| author | J08nY | 2017-08-07 00:50:19 +0200 |
|---|---|---|
| committer | J08nY | 2017-08-07 00:50:19 +0200 |
| commit | 59ec076d04340245101de98633705d312374d9fe (patch) | |
| tree | 8614919b84fa1f2d6cc3edeb39f197bd7bfe518b /src/mailman_pgp/workflows/key_revoke.py | |
| parent | 570dfe8007d21593816d90df21f9f4fa25a7dae3 (diff) | |
| download | mailman-pgp-feature/key-revocation.tar.gz mailman-pgp-feature/key-revocation.tar.zst mailman-pgp-feature/key-revocation.zip | |
Diffstat (limited to 'src/mailman_pgp/workflows/key_revoke.py')
| -rw-r--r-- | src/mailman_pgp/workflows/key_revoke.py | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/mailman_pgp/workflows/key_revoke.py b/src/mailman_pgp/workflows/key_revoke.py index 523e6df..7a7c071 100644 --- a/src/mailman_pgp/workflows/key_revoke.py +++ b/src/mailman_pgp/workflows/key_revoke.py @@ -16,6 +16,7 @@ # this program. If not, see <http://www.gnu.org/licenses/>. """""" +from mailman.interfaces.pending import IPendable from mailman.interfaces.workflows import IWorkflow from mailman.workflows.base import Workflow from public import public @@ -32,6 +33,14 @@ class KeyRevokeBase(Workflow, PGPMixin): Workflow.__init__(self) PGPMixin.__init__(self, mlist, pgp_address) + @classmethod + def pendable_class(cls): + @implementer(IPendable) + class Pendable(dict): + PEND_TYPE = cls.name + + return Pendable + @public @implementer(IWorkflow) @@ -43,7 +52,8 @@ class KeyRevokeWorkflow(KeyRevokeBase, SetPubkeyMixin, ConfirmPubkeyMixin, save_attributes = ( 'approved', 'address_key', - 'pubkey_key' + 'pubkey_key', + 'pubkey_confirmed' ) def __init__(self, mlist, pgp_address=None, pubkey=None, |
