comparison src/browser/libervia_main.py @ 548:530f3fc3e3d7

browser_side: fixes signal callback with no argument (e.g disconnected)
author souliane <souliane@mailoo.org>
date Thu, 11 Sep 2014 12:59:13 +0200
parents 048ae7314156
children cd56f2b0e85b
comparison
equal deleted inserted replaced
547:dd43132684b9 548:530f3fc3e3d7
458 jid, attributes, groups = contact_ 458 jid, attributes, groups = contact_
459 self._newContactCb(jid, attributes, groups) 459 self._newContactCb(jid, attributes, groups)
460 460
461 def _getSignalsCB(self, signal_data): 461 def _getSignalsCB(self, signal_data):
462 self.bridge_signals.call('getSignals', self._getSignalsCB) 462 self.bridge_signals.call('getSignals', self._getSignalsCB)
463 if len(signal_data) == 1:
464 signal_data.append([])
463 log.debug("Got signal ==> name: %s, params: %s" % (signal_data[0], signal_data[1])) 465 log.debug("Got signal ==> name: %s, params: %s" % (signal_data[0], signal_data[1]))
464 name, args = signal_data 466 name, args = signal_data
465 if name == 'personalEvent': 467 if name == 'personalEvent':
466 self._personalEventCb(*args) 468 self._personalEventCb(*args)
467 elif name == 'newMessage': 469 elif name == 'newMessage':