comparison frontends/src/quick_frontend/quick_app.py @ 1063:6ec513ad92c2

frontends: async failures are more detailed (full class name + error message)
author souliane <souliane@mailoo.org>
date Sat, 07 Jun 2014 15:39:20 +0200
parents aa15453ec54d
children a47995155e55
comparison
equal deleted inserted replaced
1062:95758ef3faa8 1063:6ec513ad92c2
285 to_jid = unescapePrivate(to_jid) 285 to_jid = unescapePrivate(to_jid)
286 mess_type = "chat" 286 mess_type = "chat"
287 if callback is None: 287 if callback is None:
288 callback = lambda: None 288 callback = lambda: None
289 if errback is None: 289 if errback is None:
290 errback = lambda failure: self.showDialog(unicode(failure), _(u"sendMessage Error"), "error") 290 errback = lambda failure: self.showDialog(failure.fullname, failure.message, "error")
291 self.bridge.sendMessage(to_jid, message, subject, mess_type, extra, profile_key, callback=callback, errback=errback) 291 self.bridge.sendMessage(to_jid, message, subject, mess_type, extra, profile_key, callback=callback, errback=errback)
292 292
293 def newAlert(self, msg, title, alert_type, profile): 293 def newAlert(self, msg, title, alert_type, profile):
294 if not self.check_profile(profile): 294 if not self.check_profile(profile):
295 return 295 return