comparison sat_frontends/quick_frontend/quick_app.py @ 2669:bdb8276fd2da

frontends (xmlui): class_map is now an arg of create function: class_map was so far used as a global value, but in some cases, several XMLUI managers may be used (it's the case in Cagou's remote controllers plugins, template_xmlui is used to manage remotes). This patch set class_map as a create argument, this way it can be set with partial, and several XMLUI managers can be instanced at the same time.
author Goffi <goffi@goffi.org>
date Fri, 31 Aug 2018 16:03:12 +0200
parents e35a265ec174
children eb69ec549d05
comparison
equal deleted inserted replaced
2668:c274201cea94 2669:bdb8276fd2da
1119 self.callListeners("nick", entity, value, profile=profile) 1119 self.callListeners("nick", entity, value, profile=profile)
1120 elif key == "avatar" and self.AVATARS_HANDLER: 1120 elif key == "avatar" and self.AVATARS_HANDLER:
1121 if value and entity in self.contact_lists[profile]: 1121 if value and entity in self.contact_lists[profile]:
1122 self.getAvatar(entity, ignore_cache=True, profile=profile) 1122 self.getAvatar(entity, ignore_cache=True, profile=profile)
1123 1123
1124 def actionManager( 1124 def actionManager(self, action_data, callback=None, ui_show_cb=None, user_action=True,
1125 self, 1125 profile=C.PROF_KEY_NONE):
1126 action_data,
1127 callback=None,
1128 ui_show_cb=None,
1129 user_action=True,
1130 profile=C.PROF_KEY_NONE,
1131 ):
1132 """Handle backend action 1126 """Handle backend action
1133 1127
1134 @param action_data(dict): action dict as sent by launchAction or returned by an 1128 @param action_data(dict): action dict as sent by launchAction or returned by an
1135 UI action 1129 UI action
1136 @param callback(None, callback): if not None, callback to use on XMLUI answer 1130 @param callback(None, callback): if not None, callback to use on XMLUI answer