changeset a5975b38b47c in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=a5975b38b47c
description: Fixed get_contacts_jid duplication
diffstat:
src/common/contacts.py | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (23 lines):
diff -r b0db565be3bd -r a5975b38b47c src/common/contacts.py
--- a/src/common/contacts.py Fri Feb 26 11:38:14 2010 +0100
+++ b/src/common/contacts.py Mon Mar 08 17:35:48 2010 +0200
@@ -591,15 +591,15 @@
return True
def get_contacts_jid_list(self, account):
- return self._accounts[account].contacts.get_contacts_jid_list()
+ return self._accounts[account].contacts._get_contacts_jid_list()
def get_jid_list(self, account):
return self._contacts[account].keys()
- def get_contacts_jid_list(self):
+ def _get_contacts_jid_list(self):
contacts = self._contacts.keys()
- for jid in self._contacts.keys():
- if self._contacts[jid][0].is_groupchat():
+ for jid, contact in self._contacts.iteritems():
+ if contact[0].is_groupchat():
contacts.remove(jid)
return contacts
_______________________________________________
Commits mailing list
[email protected]
http://lists.gajim.org/cgi-bin/listinfo/commits