Merge lp:~flo-fuchs/mailman.client/settings into lp:mailman.client
Proposed by
Florian Fuchs
Status: | Merged |
---|---|
Approved by: | Barry Warsaw |
Approved revision: | 14 |
Merged at revision: | 14 |
Proposed branch: | lp:~flo-fuchs/mailman.client/settings |
Merge into: | lp:mailman.client |
Diff against target: |
248 lines (+170/-11) 2 files modified
mailman/client/_client.py (+98/-11) mailman/client/docs/using.txt (+72/-0) |
To merge this branch: | bzr merge lp:~flo-fuchs/mailman.client/settings |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Florian Fuchs | Needs Information | ||
Barry Warsaw | Approve | ||
Review via email: mp+56088@code.launchpad.net |
Description of the change
Hi,
I have added methods to delete mailing lists as well as a _Settings class to read and write list settings. Please feel free to make any changes you want (...and, of course, tell me if you feel this should be done completely differently... ;-)
Cheers
Florian
To post a comment you must log in.
This looks good, thanks! I have just two minor suggestions.
* Where you're returning a unicode string object in the doctests, it would be better to use 'print' so you don't get the ugly u'' prefixes. E.g., instead of:
>>> settings_ new['descriptio n']
u'A very meaningful description.'
use:
>>> print settings_ new['descriptio n']
A very meaningful description.
* You should not need to use the u'' strings in your doctests. Mailman does a 'from __future__ import unicode_literals' in all its .py files to force literals to be unicodes (in the absence of explicit b'' prefixes). mailman.client should do the same. To make this work in doctests, you need to set the testobj's globs in the doctest's setUp(). See src/mailman/ tests/test_ documentation. py down about line 183 for an example.
Other than that, it looks great, and please do merge it after consideration of the above. Thanks!