comparison frontends/src/primitivus/contact_list.py @ 1339:18cd46a264e9 frontends_multi_profiles

quick frontends, primitivus: fixed listener calls (kwargs where forgotten) + fixed presence listener + renamed updatePresence to onPresenceUpdate for consistency with oter listeners
author Goffi <goffi@goffi.org>
date Tue, 24 Feb 2015 16:52:44 +0100
parents faa1129559b8
children e31a07a5614d
comparison
equal deleted inserted replaced
1338:139263ee85c5 1339:18cd46a264e9
146 self._alerts.discard(entity) 146 self._alerts.discard(entity)
147 self.host.modeHint(C.MODE_INSERTION) 147 self.host.modeHint(C.MODE_INSERTION)
148 self.update() 148 self.update()
149 self._emit('click', entity) 149 self._emit('click', entity)
150 150
151 def updatePresence(self, entity, show, priority, statuses): 151 def onPresenceUpdate(self, entity, show, priority, statuses, profile):
152 super(ContactList, self).updatePresence(entity, show, priority, statuses) 152 super(ContactList, self).onPresenceUpdate(entity, show, priority, statuses, profile)
153 self.update() 153 self.update()
154 154
155 # Methods to build the widget 155 # Methods to build the widget
156 156
157 def _buildEntityWidget(self, entity, keys=None, use_bare_jid=False, with_alert=True, with_show_attr=True, markup_prepend=None, markup_append = None): 157 def _buildEntityWidget(self, entity, keys=None, use_bare_jid=False, with_alert=True, with_show_attr=True, markup_prepend=None, markup_append = None):