Mercurial > libervia-backend
diff frontends/src/quick_frontend/quick_app.py @ 1342:e31a07a5614d frontends_multi_profiles
quick_frontends, primitivus (contact list): added nick observer + implemented onNickUpdate
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 24 Feb 2015 17:14:10 +0100 |
parents | 18cd46a264e9 |
children | b26dd78de495 |
line wrap: on
line diff
--- a/frontends/src/quick_frontend/quick_app.py Tue Feb 24 17:01:33 2015 +0100 +++ b/frontends/src/quick_frontend/quick_app.py Tue Feb 24 17:14:10 2015 +0100 @@ -313,6 +313,8 @@ @param type_: type of event, can be: - avatar: called when avatar data is updated args: (entity, avatar file, profile) + - nick: called when nick data is updated + args: (entity, new_nick, profile) - presence: called when a presence is received args: (entity, show, priority, statuses, profile) @param callback: method to call on event @@ -685,6 +687,7 @@ if key == "nick": if entity in self.contact_lists[profile]: self.contact_lists[profile].setCache(entity, 'nick', value) + self.callListeners('nick', entity, value, profile=profile) elif key == "avatar": if entity in self.contact_lists[profile]: def gotFilename(filename):