Mercurial > libervia-backend
comparison frontends/quick_frontend/quick_contact_management.py @ 66:8147b4f40809
SàT: multi-profile: DBus signals and frontend adaptation (first draft)
- Quick App: new single_profile parameter in __init__ (default: yes), used to tell if the application use only one profile at the time or not
- Quick App: new __check_profile method, tell if the profile is used by the current frontend
- Quick App: new methods plug_profile, unplug_profile and clear_profile, must be called by the frontend to tell which profiles to use
- DBus Bridge: new methods getProfileName, getProfilesList and createProfile
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 03 Feb 2010 23:35:57 +1100 |
parents | a5b5fb5fc9fd |
children | 8f2ed279784b |
comparison
equal
deleted
inserted
replaced
65:d35c5edab53f | 66:8147b4f40809 |
---|---|
89 @param value: value of the attribute | 89 @param value: value of the attribute |
90 """ | 90 """ |
91 if self.__contactlist.has_key(entity.short): | 91 if self.__contactlist.has_key(entity.short): |
92 self.__contactlist[entity.short][key] = value | 92 self.__contactlist[entity.short][key] = value |
93 else: | 93 else: |
94 debug ('Trying to update an uknown contact: %s', entity.short) | 94 debug ('Trying to update an unknown contact: %s', entity.short) |
95 | 95 |
96 def get_full(self, entity): | 96 def get_full(self, entity): |
97 return entity.short+'/'+self.__contactlist[entity.short]['resources'][-1] | 97 return entity.short+'/'+self.__contactlist[entity.short]['resources'][-1] |
98 | 98 |