diff options
author | mathieui <mathieui@mathieui.net> | 2014-04-14 19:51:56 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2014-04-14 19:51:56 +0200 |
commit | b884e6d6e2ca7365d6a93482d211892fa141077e (patch) | |
tree | a84f222b87b07a557f432314348a2244441b1177 /src | |
parent | e3859c2862b441059012e51cbd9e7eccc6b13470 (diff) | |
download | poezio-b884e6d6e2ca7365d6a93482d211892fa141077e.tar.gz poezio-b884e6d6e2ca7365d6a93482d211892fa141077e.tar.bz2 poezio-b884e6d6e2ca7365d6a93482d211892fa141077e.tar.xz poezio-b884e6d6e2ca7365d6a93482d211892fa141077e.zip |
Fix #2339 (put the more “important” users at the bottom in the userlist when configured)
(one-line fix, and the others are for reformatting imports to be consistent)
Diffstat (limited to 'src')
-rw-r--r-- | src/windows.py | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/src/windows.py b/src/windows.py index 997fb72b..cb1ccefc 100644 --- a/src/windows.py +++ b/src/windows.py @@ -12,30 +12,28 @@ the text window, the roster window, etc. A Tab (see tab.py) is composed of multiple Windows """ - import logging log = logging.getLogger(__name__) +import collections import curses import string from datetime import datetime from math import ceil, log10 -from config import config - from threading import RLock -from contact import Contact, Resource -from roster import RosterGroup -import poopt -from common import safeJID import common - import core +import poopt import singleton -import collections - +from common import safeJID +from config import config +from contact import Contact, Resource +from roster import RosterGroup from theming import get_theme, to_curses_attr, read_tuple, dump_tuple +from user import ROLE_DICT + FORMAT_CHAR = '\x19' # These are non-printable chars, so they should never appear in the input, @@ -247,7 +245,7 @@ class UserList(Win): if config.get('user_list_sort', 'desc').lower() == 'asc': y, x = self._win.getmaxyx() y -= 1 - users = sorted(users, reverse=True) + users = sorted(users) else: y = 0 users = sorted(users) |