------------------------------------------------------------
revno: 50
committer: Florian Fuchs <[email protected]>
branch nick: mailman.client
timestamp: Sat 2014-03-15 18:38:56 +0100
message:
added doctest for saving preferences (given by abompard)
modified:
src/mailmanclient/docs/using.txt
--
lp:mailman.client
https://code.launchpad.net/~mailman-coders/mailman.client/trunk
Your team Mailman Coders is subscribed to branch lp:mailman.client.
To unsubscribe from this branch go to
https://code.launchpad.net/~mailman-coders/mailman.client/trunk/+edit-subscription
=== modified file 'src/mailmanclient/docs/using.txt'
--- src/mailmanclient/docs/using.txt 2014-03-15 17:13:31 +0000
+++ src/mailmanclient/docs/using.txt 2014-03-15 17:38:56 +0000
@@ -522,6 +522,13 @@
Preferences can be set, but you have to call ``save`` to make your changes permanent.
+ >>> prefs = test_two.get_member('[email protected]').preferences
+ >>> prefs['delivery_status'] = 'by_user'
+ >>> prefs.save()
+ >>> prefs = test_two.get_member('[email protected]').preferences
+ >>> print prefs['delivery_status']
+ by_user
+
Owners and Moderators
=====================
_______________________________________________
Mailman-coders mailing list
[email protected]
https://mail.python.org/mailman/listinfo/mailman-coders