comparison libervia.tac @ 275:a763b2ac5d41

bridge + browser_side: bridge signals for games and their callbacks: - added radiocolPlayers and tarotGamePlayers to get the list of players - added roomLeft to remove the muc from the host's room list - display symbols to identify the players in a muc - factorization of ChatPanel.startGame
author souliane <souliane@mailoo.org>
date Thu, 21 Nov 2013 16:13:14 +0100
parents 79970bf6af93
children ea2d4f464b5a
comparison
equal deleted inserted replaced
274:886b47896f3c 275:a763b2ac5d41
886 #core 886 #core
887 for signal_name in ['presenceUpdate', 'newMessage', 'subscribe', 'contactDeleted', 'newContact', 'entityDataUpdated', 'askConfirmation', 'newAlert']: 887 for signal_name in ['presenceUpdate', 'newMessage', 'subscribe', 'contactDeleted', 'newContact', 'entityDataUpdated', 'askConfirmation', 'newAlert']:
888 self.bridge.register(signal_name, self.signal_handler.getGenericCb(signal_name)) 888 self.bridge.register(signal_name, self.signal_handler.getGenericCb(signal_name))
889 #plugins 889 #plugins
890 for signal_name in ['personalEvent', 'roomJoined', 'roomUserJoined', 'roomUserLeft', 'tarotGameStarted', 'tarotGameNew', 'tarotGameChooseContrat', 890 for signal_name in ['personalEvent', 'roomJoined', 'roomUserJoined', 'roomUserLeft', 'tarotGameStarted', 'tarotGameNew', 'tarotGameChooseContrat',
891 'tarotGameShowCards', 'tarotGameInvalidCards', 'tarotGameCardsPlayed', 'tarotGameYourTurn', 'tarotGameScore', 891 'tarotGameShowCards', 'tarotGameInvalidCards', 'tarotGameCardsPlayed', 'tarotGameYourTurn', 'tarotGameScore', 'tarotGamePlayers',
892 'radiocolStarted', 'radiocolPreload', 'radiocolPlay', 'radiocolNoUpload', 'radiocolUploadOk', 'radiocolSongRejected', 892 'radiocolStarted', 'radiocolPreload', 'radiocolPlay', 'radiocolNoUpload', 'radiocolUploadOk', 'radiocolSongRejected', 'radiocolPlayers',
893 'chatStateReceived']: 893 'roomLeft', 'chatStateReceived']:
894 self.bridge.register(signal_name, self.signal_handler.getGenericCb(signal_name), "plugin") 894 self.bridge.register(signal_name, self.signal_handler.getGenericCb(signal_name), "plugin")
895 self.media_dir = self.bridge.getConfig('','media_dir') 895 self.media_dir = self.bridge.getConfig('','media_dir')
896 self.local_dir = self.bridge.getConfig('','local_dir') 896 self.local_dir = self.bridge.getConfig('','local_dir')
897 root.putChild('', Redirect('libervia.html')) 897 root.putChild('', Redirect('libervia.html'))
898 root.putChild('json_signal_api', self.signal_handler) 898 root.putChild('json_signal_api', self.signal_handler)