From 9062b2da02fcd4a516c4593381dd14c8756a3324 Mon Sep 17 00:00:00 2001 From: souliane Date: Mon, 13 Jul 2015 13:33:54 +0200 Subject: [PATCH] quick_frontend: add a couple of TODOs --- frontends/src/quick_frontend/quick_app.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontends/src/quick_frontend/quick_app.py b/frontends/src/quick_frontend/quick_app.py index 1fed170e..d459f428 100644 --- a/frontends/src/quick_frontend/quick_app.py +++ b/frontends/src/quick_frontend/quick_app.py @@ -622,12 +622,14 @@ class QuickApp(object): entity = jid.JID(raw_jid) if type == "subscribed": # this is a subscription confirmation, we just have to inform user + # TODO: call self.getEntityMBlog to add the new contact blogs self.showDialog(_("The contact %s has accepted your subscription") % entity.bare, _('Subscription confirmation')) elif type == "unsubscribed": # this is a subscription refusal, we just have to inform user self.showDialog(_("The contact %s has refused your subscription") % entity.bare, _('Subscription refusal'), 'error') elif type == "subscribe": # this is a subscriptionn request, we have to ask for user confirmation + # TODO: use sat.stdui.ui_contact_list to display the groups selector 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, answer_data=None):