diff options
| author | J08nY | 2017-08-15 22:49:53 +0200 |
|---|---|---|
| committer | J08nY | 2017-08-15 22:49:53 +0200 |
| commit | bd8dd5fbea383810bd14b10f5c7288954cab0d05 (patch) | |
| tree | 1c82125cc490d3a8f63469d41dd38b3169a80c2e /src/django_pgpmailman/forms.py | |
| parent | 70cf9c14f3fd756bd40e848919d253d3e9b8fc44 (diff) | |
| download | django-pgpmailman-bd8dd5fbea383810bd14b10f5c7288954cab0d05.tar.gz django-pgpmailman-bd8dd5fbea383810bd14b10f5c7288954cab0d05.tar.zst django-pgpmailman-bd8dd5fbea383810bd14b10f5c7288954cab0d05.zip | |
Diffstat (limited to 'src/django_pgpmailman/forms.py')
| -rw-r--r-- | src/django_pgpmailman/forms.py | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/django_pgpmailman/forms.py b/src/django_pgpmailman/forms.py index 17b5380..7fcd3a9 100644 --- a/src/django_pgpmailman/forms.py +++ b/src/django_pgpmailman/forms.py @@ -132,3 +132,30 @@ class ListEncryptionSettingsForm(forms.Form): 'done before executing the signature checks. `Defer` ' 'lets the message pass-through to signature checks.') ) + + +key_change_choices = (('pgp-key-change-workflow', _('Default')), + ('pgp-key-change-mod-workflow', + _('Default, then moderate'))) +member_role_choices = (('member', _('Member')), + ('owner', _('Owner')), + ('moderator', _('Moderator')), + ('nonmember', _('Nonmember'))) + + +class ListMiscSettingsForm(forms.Form): + key_change_workflow = forms.ChoiceField( + widget=forms.Select(), + choices=key_change_choices, + required=False, + label=_('Key change workflow'), + help_text=_('A workflow to use for the key change operation.') + ) + key_signing_allowed = forms.MultipleChoiceField( + widget=forms.SelectMultiple(), + choices=member_role_choices, + required=False, + label=_('Key signing allowed'), + help_text=_('A set of member roles that are allowed to sign the ' + 'lists public key via the `key sign` command.') + ) |
