[Mailman-Developers] Mailman REST API: How to change preferences?

Manish Gill mgill25 at outlook.com
Wed Aug 21 15:09:04 CEST 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I'm having some trouble in interacting with preferences as they are
exposed via Mailman's REST API. As I understand from the
documentation, preferences have various "fallbacks" so a value is
always available even if it is not present for an upper level. This
goes as: member -> address -> user -> system.

Onwards to the problem: To change a value in the preferences of a
membership.

It would seem that the membership preferences (accessible via
"/members/id/all/preferences") are set as read-only. So when I do this:

>>> requests.patch(url, data={'delivery_mode': "digest"},
>>> auth=auth)

It returns 405. Although we can modify "delivery_mode" if we access
"/members/id/preferences".

So how do I change those other values? I can try and convert them on
the Address, or the User, but those are not specific enough. Something
like Address would change them for *all* the subscriptions on that
email address, which is not the goal here.

And maybe I'm missing something, but it would also seem that changing
them on a address would be pointless if we have a membership, since,
as the docs say, precedence is given to
the membership preferences (which can't be modified).

So, why are membership preferences read-only and is there anything I
can do about that?

Thanks!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJSFLvwAAoJEDTnrae/jUU9gOgH/R0/KcXyNv6hE/gWiT4JN9Vs
lranOJ8Iu45iEPbHUP1OZ1V+qJtr7GIAMH+oN/n0dK7lWMTDWmx3tKowaXWODt6t
6DVFceyMItwPUTaIiWI8xtmjZWbBhbNTc11dsaDMcEbegrPLur2QtdQYpnHFXO9x
EgBe4F6ZGdLhFxIy0xwmMupTtJRG/1c00r5LCSIhMQrZ5n1ywFZEG7WRMX9hj1sB
qKuTMGnGS1ydLnJrQ0RmbEstHWk9AuzxWzlP+1k+LBcdA3X6t5GvedM61Jz+6uTA
cPRBNRZSZZLaWXQheXGnnKZ1ioY3EX7YhhAp4sRvspKqvQVTEt2MNmKgBzktP7I=
=ysZD
-----END PGP SIGNATURE-----


More information about the Mailman-Developers mailing list