Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sort countries alphabeitcally in the AP settings #7

Merged
merged 1 commit into from
Jul 22, 2016

Conversation

foxbunny
Copy link
Contributor

This patch changes the country list for the wireless AP settings so they are
always sorted alphabetically, taking into account i18n. The sorting is done
using locale.strcoll as the comparison function so reasonably correct
sorting is expected for various languages.

Because we are wrapping the sorting code in bottle_utils.lazy.Lazy, the
null-value item is set using empty_value kwarg, which requires
Othernet-Project/librarian#340 to be merged.

Fixes #6

This patch changes the country list for the wireless AP settings so they are
always sorted alphabetically, taking into account i18n. The sorting is done
using locale.strcoll as the comparison function so reasonably correct
sorting is expected for various languages.

Because we are wrapping the sorting code in bottle_utils.lazy.Lazy, the
null-value item is set using empty_value kwarg, which requires
Othernet-Project/librarian#340 to be merged.

Signed-off-by: Branko Vukelic <branko@outernet.is>
@foxbunny foxbunny added the bug label Jul 22, 2016
@n0phx n0phx merged commit b894d0d into hotfix/2.0.post1 Jul 22, 2016
@n0phx n0phx deleted the fix/country-sorting branch July 22, 2016 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants