Mercurial > libervia-backend
comparison frontends/src/quick_frontend/quick_app.py @ 1393:50d5d6325f62
quick_frontend, primitivus: various fixes (MUC and cached signals):
- actually call the cached signals, everything was there but the call was not done
- display '[]' instead of '[None]' when group message coming from the room (no resource)
- catch the exception when trying to delete an occupant who's not in the room
- do not cache a "main resource" for MUC entities
author | souliane <souliane@mailoo.org> |
---|---|
date | Wed, 25 Mar 2015 15:25:51 +0100 |
parents | 1276e6a0716b |
children | e3624cb3765d |
comparison
equal
deleted
inserted
replaced
1392:c7082457d03f | 1393:50d5d6325f62 |
---|---|
386 | 386 |
387 # profile is ready, we can call send signals that where is cache | 387 # profile is ready, we can call send signals that where is cache |
388 cached_signals = self.signals_cache.pop(profile, []) | 388 cached_signals = self.signals_cache.pop(profile, []) |
389 for function_name, handler, args, kwargs in cached_signals: | 389 for function_name, handler, args, kwargs in cached_signals: |
390 log.debug(u"Calling cached signal [%s] with args %s and kwargs %s" % (function_name, args, kwargs)) | 390 log.debug(u"Calling cached signal [%s] with args %s and kwargs %s" % (function_name, args, kwargs)) |
391 handler(*args, **kwargs) | |
391 | 392 |
392 self.callListeners('profilePlugged', profile=profile) | 393 self.callListeners('profilePlugged', profile=profile) |
393 | 394 |
394 def asyncConnect(self, profile, callback=None, errback=None): | 395 def asyncConnect(self, profile, callback=None, errback=None): |
395 if not callback: | 396 if not callback: |