comparison src/browser/sat_browser/json.py @ 700:b81816f42c81

browser side: added signal caching before profile is plugged, as QuickFrontend mechanism is not used
author Goffi <goffi@goffi.org>
date Wed, 27 May 2015 19:10:16 +0200
parents b395d1309936
children 3b91225b457a
comparison
equal deleted inserted replaced
699:be55a782a976 700:b81816f42c81
259 except KeyError: 259 except KeyError:
260 log.warning(u"Ignoring {} signal: no handler registered !".format(name)) 260 log.warning(u"Ignoring {} signal: no handler registered !".format(name))
261 return 261 return
262 if with_profile: 262 if with_profile:
263 args.append(C.PROF_KEY_NONE) 263 args.append(C.PROF_KEY_NONE)
264 callback(*args) 264 if not self.host._profile_plugged:
265 log.debug("Profile is not plugged, we cache the signal")
266 self.host.signals_cache[C.PROF_KEY_NONE].append((name, callback, args, {}))
267 else:
268 callback(*args)