diff options
| author | Aurélien Bompard | 2015-03-31 12:41:05 +0200 |
|---|---|---|
| committer | Aurélien Bompard | 2015-03-31 12:41:05 +0200 |
| commit | f75287d17af321a5ee85c499688a5c7ad0aae589 (patch) | |
| tree | 69d05264ad2f5d663c2aea0606232bb43f85e320 /src/mailman/rest/listconf.py | |
| parent | 017decd6fb8288ec498a4ab32be2273699c7cdaf (diff) | |
| download | mailman-f75287d17af321a5ee85c499688a5c7ad0aae589.tar.gz mailman-f75287d17af321a5ee85c499688a5c7ad0aae589.tar.zst mailman-f75287d17af321a5ee85c499688a5c7ad0aae589.zip | |
Diffstat (limited to 'src/mailman/rest/listconf.py')
| -rw-r--r-- | src/mailman/rest/listconf.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mailman/rest/listconf.py b/src/mailman/rest/listconf.py index e83f52833..92d1169d4 100644 --- a/src/mailman/rest/listconf.py +++ b/src/mailman/rest/listconf.py @@ -29,7 +29,8 @@ from mailman.core.errors import ( from mailman.interfaces.action import Action from mailman.interfaces.archiver import ArchivePolicy from mailman.interfaces.autorespond import ResponseAction -from mailman.interfaces.mailinglist import IAcceptableAliasSet, ReplyToMunging +from mailman.interfaces.mailinglist import ( + IAcceptableAliasSet, ReplyToMunging, SubscriptionPolicy) from mailman.rest.helpers import ( GetterSetter, bad_request, etag, no_content, okay) from mailman.rest.validator import PatchValidator, Validator, enum_validator @@ -142,6 +143,7 @@ ATTRIBUTES = dict( scheme=GetterSetter(None), send_welcome_message=GetterSetter(as_boolean), subject_prefix=GetterSetter(str), + subscription_policy=GetterSetter(enum_validator(SubscriptionPolicy)), volume=GetterSetter(None), web_host=GetterSetter(None), welcome_message_uri=GetterSetter(str), |
