Commit 23d3a966 authored by Barry Warsaw's avatar Barry Warsaw

* Expose ``hide_address`` to the ``.../preferences`` REST API. Contributed

   by Sneha Priscilla.
parents e369547c 9b3268f2
......@@ -25,6 +25,8 @@ REST
attributes of a mailing list's configuration. (LP: #1157881)
* Support pagination of some large collections (lists, users, members).
Given by Florian Fuchs. (LP: #1156529)
* Expose ``hide_address`` to the ``.../preferences`` REST API. Contributed
by Sneha Priscilla.
Configuration
-------------
......
......@@ -95,6 +95,7 @@ PUT operation.
... 'acknowledge_posts': True,
... 'delivery_mode': 'plaintext_digests',
... 'delivery_status': 'by_user',
... 'hide_address': False,
... 'preferred_language': 'ja',
... 'receive_list_copy': True,
... 'receive_own_postings': False,
......@@ -109,6 +110,7 @@ PUT operation.
acknowledge_posts: True
delivery_mode: plaintext_digests
delivery_status: by_user
hide_address: False
http_etag: "..."
preferred_language: ja
receive_list_copy: True
......@@ -133,6 +135,7 @@ You can also update just a few of the attributes using PATCH.
acknowledge_posts: True
delivery_mode: plaintext_digests
delivery_status: by_user
hide_address: False
http_etag: "..."
preferred_language: ja
receive_list_copy: False
......
......@@ -84,6 +84,7 @@ class Preferences(ReadOnlyPreferences):
return http.not_found()
kws = dict(
acknowledge_posts=GetterSetter(as_boolean),
hide_address = GetterSetter(as_boolean),
delivery_mode=GetterSetter(enum_validator(DeliveryMode)),
delivery_status=GetterSetter(enum_validator(DeliveryStatus)),
preferred_language=GetterSetter(language_validator),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment