Abhilash Raj pushed to branch master at GNU Mailman / Mailman Core
Commits:
bc8773cd by Abhilash Raj at 2018-05-16T15:51:44Z
REST: Expose respond_to_post_request via API.
- - - - -
e99db07c by Abhilash Raj at 2018-05-16T21:01:05Z
Merge branch 'issue-223' into 'master'
REST: Expose respond_to_post_request via API.
Closes #420
See merge request mailman/mailman!390
- - - - -
4 changed files:
- src/mailman/docs/NEWS.rst
- src/mailman/rest/docs/listconf.rst
- src/mailman/rest/listconf.py
- src/mailman/rest/tests/test_listconf.py
Changes:
=====================================
src/mailman/docs/NEWS.rst
=====================================
--- a/src/mailman/docs/NEWS.rst
+++ b/src/mailman/docs/NEWS.rst
@@ -149,6 +149,7 @@ REST
attribute is now deprecated and will be removed in future versions.
* Add ``display_name`` for ``member`` in order to expose
``member.display_name``.
(Closes #398)
+* Expose ``MailingList.respond_to_post_request`` through REST API. (Closes
#420)
3.1.0 -- "Between The Wheels"
=====================================
src/mailman/rest/docs/listconf.rst
=====================================
--- a/src/mailman/rest/docs/listconf.rst
+++ b/src/mailman/rest/docs/listconf.rst
@@ -73,7 +73,8 @@ All readable attributes for a list are available on a
sub-resource.
reply_goes_to_list: no_munging
reply_to_address:
request_address: [email protected]
- send_welcome_message: True
+ respond_to_post_requests: True
+ send_welcome_message: True
subject_prefix: [Ant]
subscription_policy: confirm
volume: 1
@@ -133,6 +134,7 @@ When using ``PUT``, all writable attributes must be
included.
... default_nonmember_action='discard',
... moderator_password='password',
... max_message_size='500',
+ ... respond_to_post_requests=True,
... ),
... 'PUT')
content-length: 0
=====================================
src/mailman/rest/listconf.py
=====================================
--- a/src/mailman/rest/listconf.py
+++ b/src/mailman/rest/listconf.py
@@ -184,6 +184,7 @@ ATTRIBUTES = dict(
subject_prefix=GetterSetter(str),
subscription_policy=GetterSetter(enum_validator(SubscriptionPolicy)),
volume=GetterSetter(None),
+ respond_to_post_requests=GetterSetter(as_boolean),
)
=====================================
src/mailman/rest/tests/test_listconf.py
=====================================
--- a/src/mailman/rest/tests/test_listconf.py
+++ b/src/mailman/rest/tests/test_listconf.py
@@ -80,6 +80,7 @@ RESOURCE = dict(
subject_prefix='[ant]',
subscription_policy='confirm_then_moderate',
welcome_message_uri='mailman:///welcome.txt',
+ respond_to_post_requests=True,
)
View it on GitLab:
https://gitlab.com/mailman/mailman/compare/87ee2af38d0a221657c1e5a085b87ba614e3fdfb...e99db07cffdf19f48821d3d317460c4c3675e07e
--
View it on GitLab:
https://gitlab.com/mailman/mailman/compare/87ee2af38d0a221657c1e5a085b87ba614e3fdfb...e99db07cffdf19f48821d3d317460c4c3675e07e
You're receiving this email because of your account on gitlab.com.
_______________________________________________
Mailman-checkins mailing list
[email protected]
Unsubscribe:
https://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org