~barry/mailman/events-and-web

« back to all changes in this revision

Viewing changes to src/mailman/rest/configuration.py

  • Committer: Barry Warsaw
  • Date: 2012-08-21 00:55:24 UTC
  • Revision ID: barry@list.org-20120821005524-6ypdhqomhni0o5s8
 * Expose `archive_policy` in the REST API.  Contributed by Alexander
   Sulfrian.  (LP: #1039129)

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
 
31
31
from mailman.config import config
32
32
from mailman.interfaces.action import Action
 
33
from mailman.interfaces.archiver import ArchivePolicy
33
34
from mailman.interfaces.autorespond import ResponseAction
34
35
from mailman.interfaces.mailinglist import IAcceptableAliasSet, ReplyToMunging
35
36
from mailman.rest.helpers import PATCH, etag, no_content
170
171
    autoresponse_owner_text=GetterSetter(unicode),
171
172
    autoresponse_postings_text=GetterSetter(unicode),
172
173
    autoresponse_request_text=GetterSetter(unicode),
 
174
    archive_policy=GetterSetter(enum_validator(ArchivePolicy)),
173
175
    bounces_address=GetterSetter(None),
174
176
    collapse_alternatives=GetterSetter(as_boolean),
175
177
    convert_html_to_plaintext=GetterSetter(as_boolean),