Mercurial > libervia-backend
comparison 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 |
comparison
equal
deleted
inserted
replaced
1324:948dc273ad93 | 1325:49f967fc87aa |
---|---|
617 self.showDialog(_("The contact %s has refused your subscription") % entity.bare, _('Subscription refusal'), 'error') | 617 self.showDialog(_("The contact %s has refused your subscription") % entity.bare, _('Subscription refusal'), 'error') |
618 elif type == "subscribe": | 618 elif type == "subscribe": |
619 # this is a subscriptionn request, we have to ask for user confirmation | 619 # this is a subscriptionn request, we have to ask for user confirmation |
620 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)) | 620 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)) |
621 | 621 |
622 def showDialog(self, message, title, type="info", answer_cb=None): | 622 def showDialog(self, message, title, type="info", answer_cb=None, answer_data=None): |
623 raise NotImplementedError | 623 raise NotImplementedError |
624 | 624 |
625 def showAlert(self, message): | 625 def showAlert(self, message): |
626 pass #FIXME | 626 pass #FIXME |
627 | 627 |
635 elif (namespace, name) == ('General', C.SHOW_OFFLINE_CONTACTS): | 635 elif (namespace, name) == ('General', C.SHOW_OFFLINE_CONTACTS): |
636 self.contact_lists[profile].showOfflineContacts(C.bool(value)) | 636 self.contact_lists[profile].showOfflineContacts(C.bool(value)) |
637 elif (namespace, name) == ('General', C.SHOW_EMPTY_GROUPS): | 637 elif (namespace, name) == ('General', C.SHOW_EMPTY_GROUPS): |
638 self.contact_lists[profile].showEmptyGroups(C.bool(value)) | 638 self.contact_lists[profile].showEmptyGroups(C.bool(value)) |
639 | 639 |
640 def contactDeletedHandler(self, jid, profile): | 640 def contactDeletedHandler(self, jid_s, profile): |
641 target = jid.JID(jid) | 641 target = jid.JID(jid_s) |
642 self.contact_lists[profile].remove(target) | 642 self.contact_lists[profile].remove(target) |
643 | 643 |
644 def entityDataUpdatedHandler(self, entity_s, key, value, profile): | 644 def entityDataUpdatedHandler(self, entity_s, key, value, profile): |
645 entity = jid.JID(entity_s) | 645 entity = jid.JID(entity_s) |
646 if key == "nick": | 646 if key == "nick": |