comparison libervia_server/__init__.py @ 408:ee8ebfe23e16

browser_side: handle the signal "roomUserChangedNick"
author souliane <souliane@mailoo.org>
date Mon, 17 Mar 2014 16:33:05 +0100
parents ee61b0765d6c
children 7a8991cda2fa
comparison
equal deleted inserted replaced
407:6a6551de4414 408:ee8ebfe23e16
986 self.bridge.register(signal_name, self.signal_handler.getGenericCb(signal_name)) 986 self.bridge.register(signal_name, self.signal_handler.getGenericCb(signal_name))
987 #plugins 987 #plugins
988 for signal_name in ['personalEvent', 'roomJoined', 'roomUserJoined', 'roomUserLeft', 'tarotGameStarted', 'tarotGameNew', 'tarotGameChooseContrat', 988 for signal_name in ['personalEvent', 'roomJoined', 'roomUserJoined', 'roomUserLeft', 'tarotGameStarted', 'tarotGameNew', 'tarotGameChooseContrat',
989 'tarotGameShowCards', 'tarotGameInvalidCards', 'tarotGameCardsPlayed', 'tarotGameYourTurn', 'tarotGameScore', 'tarotGamePlayers', 989 'tarotGameShowCards', 'tarotGameInvalidCards', 'tarotGameCardsPlayed', 'tarotGameYourTurn', 'tarotGameScore', 'tarotGamePlayers',
990 'radiocolStarted', 'radiocolPreload', 'radiocolPlay', 'radiocolNoUpload', 'radiocolUploadOk', 'radiocolSongRejected', 'radiocolPlayers', 990 'radiocolStarted', 'radiocolPreload', 'radiocolPlay', 'radiocolNoUpload', 'radiocolUploadOk', 'radiocolSongRejected', 'radiocolPlayers',
991 'roomLeft', 'chatStateReceived']: 991 'roomLeft', 'roomUserChangedNick', 'chatStateReceived']:
992 self.bridge.register(signal_name, self.signal_handler.getGenericCb(signal_name), "plugin") 992 self.bridge.register(signal_name, self.signal_handler.getGenericCb(signal_name), "plugin")
993 self.media_dir = self.bridge.getConfig('','media_dir') 993 self.media_dir = self.bridge.getConfig('','media_dir')
994 self.local_dir = self.bridge.getConfig('','local_dir') 994 self.local_dir = self.bridge.getConfig('','local_dir')
995 root.putChild('', Redirect('libervia.html')) 995 root.putChild('', Redirect('libervia.html'))
996 root.putChild('json_signal_api', self.signal_handler) 996 root.putChild('json_signal_api', self.signal_handler)