From 7453b87f30e00e70ae76dbf19e45de6aed79ab27 Mon Sep 17 00:00:00 2001 From: "louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13" Date: Mon, 27 Sep 2010 01:40:34 +0000 Subject: fold groups, display-name, focus the tab if user tries to open an already opened conversation (on /join too !), and nicer roster --- src/roster.py | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'src/roster.py') diff --git a/src/roster.py b/src/roster.py index e739d81d..209f7134 100644 --- a/src/roster.py +++ b/src/roster.py @@ -84,24 +84,6 @@ class Roster(object): self._roster_groups.append(new_group) new_group.add_contact(contact) - # def ordered_by_group(self, dic_roster, order): - # # ordered by contact - # for jid in dic_roster: - # if not dic_roster[jid]['in_roster']: - # continue - # self.contact_number += 1 - # groups=dic_roster[jid]['groups'] - # if not groups: - # groups = ['(none)'] - # new_contact = Contact(jid, name=dic_roster[jid]['name'], - # groups=groups, - # subscription=dic_roster[jid]['subscription'], - # presence=dic_roster[jid]['presence']) - # for group in groups: - # self.add_contact_to_group(group, new_contact) - # # debug('Jid:%s, (%s)\n' % (jid, dic_roster[jid])) - # debug('\n') - def get_groups(self): return self._roster_groups -- cgit v1.2.3