summaryrefslogtreecommitdiff
path: root/src/roster.py
AgeCommit message (Collapse)Author
2015-06-27Micro-optimize the roster refreshmathieui
The roster wrapper sucks and is way too slow. Halve refresh time by more than 50% using manually managed counters.
2014-10-31Merge branch 'master' of git.poez.io:poezio into slixmathieui
Conflicts: src/bookmark.py src/config.py src/connection.py src/core/commands.py src/core/core.py src/core/handlers.py src/windows/info_bar.py src/windows/muc.py src/windows/roster_win.py src/windows/text_win.py src/xhtml.py
2014-10-20Remove the (sometimes wrong) default values in the config.get() callsmathieui
2014-07-24Use slixmppFlorent Le Coz
2014-04-06Code cleanupmathieui
fixes whitespace issues, some builtin overrides, and some enormous lines might make poezio run nanoseconds faster!
2014-04-06Do not instantiate the roster at module levelmathieui
.
2014-03-23Fix formatting, some typos, and unused code, and add docstringsmathieui
- No idea why subclasses of ConversationTab were working before (info_header was overriden with None in __init__) - Or why the date parsing worked (“Exeception”) - Some more reformatting with pylint indications - Document each module in the tabs module
2013-09-16Fix /exportMathieu Pasquet
2013-07-24Fix contact removalmathieui
2013-07-01Fix an issue with roster loadingmathieui
(why did that even work before)
2013-06-24fix #2327 (don’t include chatrooms in the roster)mathieui
it might be a little slower than before (more checks)
2013-06-13Improve the roster searchmathieui
- now case-insensitive - search in the bare jid instead of userpart only (and still in roster names) - do not display groups when searching - display offline contacts - do not expand resources if they were before the search
2013-05-11Handle the roster order cache as a real cachemathieui
When an external (or internal) event may cause the order of the cache to be modified, or new elements to be added, schedule it for a rebuild. Otherwise, don’t, and only rebuild it when refreshing (that should improve refresh speed a lot). Also, if the position in the roster is further than the total size of the roster, go back to the top instead of displaying an empty window with “+++”.
2013-04-05Handle I/O errors bettermathieui
- Do not crash because of low disk space - Notify the user whenever it happens - A few functions now return a boolean instead of nothing - Config.silent_set is Config.set_and_save without toggle and returning strings. It is used whenever we don’t need set_and_save - Config.set_and_save now returns a tuple (that can be passed directly to core.information()) TODO: display the precise error to the user (instead of “unable to…”)
2013-02-03Fix the folding of contacts in multiple groupsmathieui
(add a defaultdict to keep the folded state in each group)
2012-11-22Make the search usable againmathieui
- Disable the history when searching - → allow moving the cursor around to select a contact when searching - fix refresh issues
2012-11-05Catch IqTimeout exception when removing a contact from the roster.Florent Le Coz
2012-10-15Fix the number of connected contacts/total number in the rostermathieui
2012-09-13Fix TBs when the system is not in utf-8 by defaultmathieui
(force every file opening to be with the utf-8 encoding)
2012-08-31Give an empty name to a group if it hasn’t got onemathieui
2012-08-31Fix a traceback when a group has no name and a crash when dns gets interruptedmathieui
- http://pastebin.archlinux.fr/449676
2012-08-07Take care of the race condition "node@groupchat_server is now online/offline"mathieui
- get rid of the ugly blacklist thing that didn’t work sometimes
2012-08-06Add a common.safeJID function, and use it everywheremathieui
2012-08-01Various changes to the roster sortingmathieui
- Change the separator from _ to : - Move the functions away in another module to avoir cluttering the roster code - Add a case-sensitive sort (“sname”)
2012-08-01Add an "online" contact sorting methodmathieui
- put the online contacts at the beginning of the list - allows, e.g. jid_reverse_online_reverse, to put offline contacts at the start of the group, in alphabetical order
2012-08-01Sort the unavailable contacts at the end of the contact listmathieui
2012-08-01Add a roster_group_sort option, which works like roster_sortmathieui
- defaults to "name" (sort by group name) - document it - also, micro-optimize get_nb_connected_contacts()
2012-07-31Add a roster_sort option to sort the contacts inside the roster groupsmathieui
- defaults to jid_show (which means that they are sorted into sub-groups by show and are sorted by JID inside those) - See the default config file or the documentation for details
2012-07-31Also sort the contacts alphabeticallymathieui
Contacts are first sorted alphabetically, and then sorted again depending on their show; since the python sorts are stable, the order will remain and the sub-groups (corresponding to one show type) will be sorted alphabetically too.
2012-07-31Sort the contacts in the roster groups by show (xa/away/…)mathieui
2012-05-21Docstrings, and small cleanupmathieui
2012-05-16Prevent the rooms from going “offline”mathieui
Add a blacklist inside the roster that contains the bare JIDs of all the rooms ever joined in this session, so that no JID using this server will ever be shown as getting “offline”. If there is a cleaner way to do that (discriminating JIDs), I welcome it.
2012-05-08Fix some roster length issues with group foldingmathieui
2012-04-27Prevent some iteration problemsmathieui
2012-04-27Remove some debug infomathieui
2012-04-27New Roster class and new RosterGroup classmathieui
Removes for Roster: - empty() → Ø - get_contact_len() → Ø - remove_contact_from_group() → Ø - add_contact_to_group() → Ø - add_contact() → add() - remove_contact() → __delitem__() - get_contact_by_jid() → __getitem__() - edit_groups_of_contact() → update_contact_groups() Removes for RosterGroup: - has_contact() → __contains__() - add_contact() → add() - remove_contact() → remove() - is_empty() → __len__()
2011-11-09-get -set +@property +@property.settermathieui
2011-11-06Code cleanup (unused import, variables, undefined names, etc…)mathieui
2011-10-01More contact management commandsTodd Eisenberger
2011-09-11Change license to zlib (MIT sucks :()Florent Le Coz
2011-09-06Change license to MITFlorent Le Coz
2011-06-18Empty roster on disconnectFlorent Le Coz
2011-05-24fixes #2187 (import/export)mathieui
2011-03-10use config.get() only once instead of doing it at each iterationFlorent Le Coz
2011-02-02fixed #2115mathieui
2011-01-12Avoid a traceback on remove_contact:Florent Le Coz
2011-01-12/add and /remove commands, yayFlorent Le Coz
2011-01-11/accept and /deny commandsFlorent Le Coz
User can now decide to accept or deny a subscription, in the roster
2011-01-01update copyright datelouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13
2010-12-18hop, fixed #2068louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13