Mercurial > libervia-backend
diff frontends/primitivus/contact_list.py @ 153:f197b52796ee
Primitivus: begining of management for actionResult
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 31 Jul 2010 00:34:05 +0800 |
parents | 2240f34f6452 |
children | 5d7a011d78ba |
line wrap: on
line diff
--- a/frontends/primitivus/contact_list.py Sat Jul 31 00:32:51 2010 +0800 +++ b/frontends/primitivus/contact_list.py Sat Jul 31 00:34:05 2010 +0800 @@ -124,11 +124,12 @@ def clear_contacts(self): """clear all the contact list""" self.groups={} + self.selected = None def replace(self, jid, groups=[None]): """add a contact to the list if doesn't exist, else update it""" - assert groups.__class__ == list - assert jid.__class__ == JID + assert isinstance(groups, list) + assert isinstance(jid, JID) if not groups: groups=[None] for group in groups: