Mercurial > libervia-backend
diff frontends/src/quick_frontend/quick_app.py @ 1325:49f967fc87aa frontends_multi_profiles
core, quick_frontends: fixes one typo and a variable naming issue
author | souliane <souliane@mailoo.org> |
---|---|
date | Sat, 21 Feb 2015 17:22:39 +0100 |
parents | a599b6a70dc0 |
children | 88e40f31b17e |
line wrap: on
line diff
--- a/frontends/src/quick_frontend/quick_app.py Sat Feb 21 12:34:48 2015 +0100 +++ b/frontends/src/quick_frontend/quick_app.py Sat Feb 21 17:22:39 2015 +0100 @@ -619,7 +619,7 @@ # this is a subscriptionn request, we have to ask for user confirmation self.showDialog(_("The contact %s wants to subscribe to your presence.\nDo you accept ?") % entity.bare, _('Subscription confirmation'), 'yes/no', answer_cb=self._subscribe_cb, answer_data=(entity, profile)) - def showDialog(self, message, title, type="info", answer_cb=None): + def showDialog(self, message, title, type="info", answer_cb=None, answer_data=None): raise NotImplementedError def showAlert(self, message): @@ -637,8 +637,8 @@ elif (namespace, name) == ('General', C.SHOW_EMPTY_GROUPS): self.contact_lists[profile].showEmptyGroups(C.bool(value)) - def contactDeletedHandler(self, jid, profile): - target = jid.JID(jid) + def contactDeletedHandler(self, jid_s, profile): + target = jid.JID(jid_s) self.contact_lists[profile].remove(target) def entityDataUpdatedHandler(self, entity_s, key, value, profile):