comparison frontends/src/primitivus/primitivus @ 1360:8ea8fa13c351 frontends_multi_profiles

frontends (quick_frontend, primitivus): fixes room games: - add quick_frontend.quick_games for registering the signals and registering the UI classes - rename the signals handlers to fit the convention (e.g.: tarotGameScoreHandler) - rename card_game to game_tarot, quick_card_game to quick_game_tarot, CardGame to TarotGame
author souliane <souliane@mailoo.org>
date Wed, 11 Mar 2015 12:43:48 +0100
parents 361b0fe72961
children ba87b940f07a
comparison
equal deleted inserted replaced
1359:83127a4c89ce 1360:8ea8fa13c351
41 from sat_frontends.primitivus import config 41 from sat_frontends.primitivus import config
42 from sat_frontends.tools.misc import InputHistory 42 from sat_frontends.tools.misc import InputHistory
43 from sat_frontends.tools import jid 43 from sat_frontends.tools import jid
44 from os.path import join 44 from os.path import join
45 import signal 45 import signal
46
47 46
48 47
49 class EditBar(sat_widgets.ModalEdit): 48 class EditBar(sat_widgets.ModalEdit):
50 """ 49 """
51 The modal edit bar where you would enter messages and commands. 50 The modal edit bar where you would enter messages and commands.
674 title = _('Form') 673 title = _('Form')
675 if data['type'] == 'registration': 674 if data['type'] == 'registration':
676 title = _('Registration') 675 title = _('Registration')
677 misc['target'] = data['target'] 676 misc['target'] = data['target']
678 misc['action_back'] = self.bridge.gatewayRegister 677 misc['action_back'] = self.bridge.gatewayRegister
679 ui = xmlui.create(self, title=title, xml_data = data['xml'], misc = misc) 678 ui = xmlui.create(self, title=title, xml_data=data['xml'], misc=misc, profile=profile)
680 if data['type'] == 'registration': 679 if data['type'] == 'registration':
681 ui.show('popup') 680 ui.show('popup')
682 else: 681 else:
683 ui.show('window') 682 ui.show('window')
684 elif type_ == "ERROR": 683 elif type_ == "ERROR":