Mercurial > libervia-backend
comparison frontends/quick_frontend/quick_contact_management.py @ 52:6455fb62ff83
Connection/disconnection signals
- wix, sortilege: management of this new signals
/!\ sortilege is bugged, the contact list window is not updated correctly
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 07 Jan 2010 01:55:30 +1100 |
parents | 8c67ea98ab91 |
children | 2ce9e350cdf9 |
comparison
equal
deleted
inserted
replaced
51:8c67ea98ab91 | 52:6455fb62ff83 |
---|---|
28 """This helper class manage the contacts and ease the use of nicknames and shortcuts""" | 28 """This helper class manage the contacts and ease the use of nicknames and shortcuts""" |
29 ### FIXME: is SàT a better place for all this stuff ??? ### | 29 ### FIXME: is SàT a better place for all this stuff ??? ### |
30 | 30 |
31 def __init__(self): | 31 def __init__(self): |
32 self.__contactlist = {} | 32 self.__contactlist = {} |
33 | |
34 def clear(self): | |
35 """Clear all the contact list""" | |
36 self.__contactlist.clear() | |
33 | 37 |
34 def add(self, entity): | 38 def add(self, entity): |
35 """Add contact to the list, update resources""" | 39 """Add contact to the list, update resources""" |
36 if not self.__contactlist.has_key(entity.short): | 40 if not self.__contactlist.has_key(entity.short): |
37 self.__contactlist[entity.short] = {'resources':[]} | 41 self.__contactlist[entity.short] = {'resources':[]} |