Mercurial > libervia-backend
comparison frontends/quick_frontend/quick_app.py @ 89:23caf1051099
multi-profile/subscription misc fixes
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 13 May 2010 16:27:48 +0930 |
parents | 66d784082930 |
children | 4020931569b8 |
comparison
equal
deleted
inserted
replaced
88:59f181e8433a | 89:23caf1051099 |
---|---|
279 self.showDialog(_("The contact %s has refused your subscription") % entity.short, _('Subscription refusal'), 'error') | 279 self.showDialog(_("The contact %s has refused your subscription") % entity.short, _('Subscription refusal'), 'error') |
280 elif type=="subscribe": | 280 elif type=="subscribe": |
281 # this is a subscriptionn request, we have to ask for user confirmation | 281 # this is a subscriptionn request, we have to ask for user confirmation |
282 answer = self.showDialog(_("The contact %s wants to subscribe to your presence.\nDo you accept ?") % entity.short, _('Subscription confirmation'), 'yes/no') | 282 answer = self.showDialog(_("The contact %s wants to subscribe to your presence.\nDo you accept ?") % entity.short, _('Subscription confirmation'), 'yes/no') |
283 if answer: | 283 if answer: |
284 self.bridge.subscription("subscribed", entity.short) | 284 self.bridge.subscription("subscribed", entity.short, profile_key = profile) |
285 else: | 285 else: |
286 self.bridge.subscribed("unsubscribed", entity.short) | 286 self.bridge.subscription("unsubscribed", entity.short, profile_key = profile) |
287 | 287 |
288 def showDialog(self, message, title, type="info"): | 288 def showDialog(self, message, title, type="info"): |
289 raise NotImplementedError | 289 raise NotImplementedError |
290 | 290 |
291 def showAlert(self, message): | 291 def showAlert(self, message): |