Merge lp:~stylistica/mailman/user_preferences into lp:mailman

Proposed by Sneha Priscilla
Status: Merged
Approved by: Barry Warsaw
Approved revision: 7216
Merged at revision: 7220
Proposed branch: lp:~stylistica/mailman/user_preferences
Merge into: lp:mailman
Diff against target: 11 lines (+1/-0)
1 file modified
src/mailman/rest/preferences.py (+1/-0)
To merge this branch: bzr merge lp:~stylistica/mailman/user_preferences
Reviewer Review Type Date Requested Status
Barry Warsaw Approve
Florian Fuchs Pending
Review via email: mp+179275@code.launchpad.net

Description of the change

A small fix to add a missing hide_address reference. Required for Postorius user preferences.

Should I submit this as a patch?

To post a comment you must log in.
Revision history for this message
Barry Warsaw (barry) wrote :

Hi! Thanks for this branch. Now that I have the test suite working again, I can merge this in.

I'm going to accept this branch, but let me just mention a few things that may make future branches easier to review.

* Please use only spaces for indentation, never tabs. Be sure your editor never uses tabs for Mailman code specifically, and (IMHO) Python code in general.

* There were no tests, but an existing test failed. In this case, it would be fine if the existing test were fixed. Please learn how to run the test suite and watch out for test failures. If you feel like you need help with adding tests, please let us know on the mailing list!

I've fixed the tabs and tests... thanks!

review: Approve
Revision history for this message
Barry Warsaw (barry) wrote :

Oh, and submitting this as a branch is definitely preferred over a patch. :)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/mailman/rest/preferences.py'
2--- src/mailman/rest/preferences.py 2013-01-01 14:05:42 +0000
3+++ src/mailman/rest/preferences.py 2013-08-08 20:52:32 +0000
4@@ -84,6 +84,7 @@
5 return http.not_found()
6 kws = dict(
7 acknowledge_posts=GetterSetter(as_boolean),
8+ hide_address = GetterSetter(as_boolean),
9 delivery_mode=GetterSetter(enum_validator(DeliveryMode)),
10 delivery_status=GetterSetter(enum_validator(DeliveryStatus)),
11 preferred_language=GetterSetter(language_validator),