comparison frontends/src/primitivus/chat.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 0a9986452bba
children 11e2bb20e896
comparison
equal deleted inserted replaced
1062:95758ef3faa8 1063:6ec513ad92c2
352 352
353 def onConfigureRoom(self, menu): 353 def onConfigureRoom(self, menu):
354 def gotUI(xmlui): 354 def gotUI(xmlui):
355 self.host.addWindow(XMLUI(self.host, xmlui)) 355 self.host.addWindow(XMLUI(self.host, xmlui))
356 def configureError(failure): 356 def configureError(failure):
357 self.host.showPopUp(sat_widgets.Alert(_("Error"), unicode(failure), ok_cb=self.host.removePopUp)) 357 self.host.showPopUp(sat_widgets.Alert(failure.fullname, failure.message, ok_cb=self.host.removePopUp))
358 self.host.bridge.configureRoom(self.id, self.host.profile, callback=gotUI, errback=configureError) 358 self.host.bridge.configureRoom(self.id, self.host.profile, callback=gotUI, errback=configureError)
359 359
360 def onSendFileRequest(self, menu): 360 def onSendFileRequest(self, menu):
361 dialog = FileDialog(ok_cb=self.onFileSelected, cancel_cb=self.host.removePopUp) 361 dialog = FileDialog(ok_cb=self.onFileSelected, cancel_cb=self.host.removePopUp)
362 self.host.showPopUp(dialog, 80, 80) 362 self.host.showPopUp(dialog, 80, 80)