comparison frontends/src/quick_frontend/quick_app.py @ 1339:18cd46a264e9 frontends_multi_profiles

quick frontends, primitivus: fixed listener calls (kwargs where forgotten) + fixed presence listener + renamed updatePresence to onPresenceUpdate for consistency with oter listeners
author Goffi <goffi@goffi.org>
date Tue, 24 Feb 2015 16:52:44 +0100
parents 139263ee85c5
children e31a07a5614d
comparison
equal deleted inserted replaced
1338:139263ee85c5 1339:18cd46a264e9
347 pass 347 pass
348 else: 348 else:
349 profile = kwargs.get("profile") 349 profile = kwargs.get("profile")
350 for listener, profiles_filter in listeners.iteritems(): 350 for listener, profiles_filter in listeners.iteritems():
351 if profile is None or not profiles_filter or profile in profiles_filter: 351 if profile is None or not profiles_filter or profile in profiles_filter:
352 listener(*args) 352 listener(*args, **kwargs)
353 353
354 def check_profile(self, profile): 354 def check_profile(self, profile):
355 """Tell if the profile is currently followed by the application""" 355 """Tell if the profile is currently followed by the application"""
356 return profile in self.profiles 356 return profile in self.profiles
357 357