comparison src/server/server.py @ 718:5745b5e6586a

browser + server sides: actionNew signal handling
author Goffi <goffi@goffi.org>
date Tue, 18 Aug 2015 08:10:02 +0200
parents 3b91225b457a
children 994be887e843
comparison
equal deleted inserted replaced
717:29b84af2ff7b 718:5745b5e6586a
1207 def backendReady(dummy): 1207 def backendReady(dummy):
1208 self.bridge.register("connected", self.signal_handler.connected) 1208 self.bridge.register("connected", self.signal_handler.connected)
1209 self.bridge.register("disconnected", self.signal_handler.disconnected) 1209 self.bridge.register("disconnected", self.signal_handler.disconnected)
1210 self.bridge.register("actionResult", self.action_handler.actionResultCb) 1210 self.bridge.register("actionResult", self.action_handler.actionResultCb)
1211 #core 1211 #core
1212 for signal_name in ['presenceUpdate', 'newMessage', 'subscribe', 'contactDeleted', 'newContact', 'entityDataUpdated', 'askConfirmation', 'newAlert', 'paramUpdate']: 1212 for signal_name in ['presenceUpdate', 'actionNew', 'newMessage', 'subscribe', 'contactDeleted',
1213 'newContact', 'entityDataUpdated', 'askConfirmation', 'newAlert', 'paramUpdate']:
1213 self.bridge.register(signal_name, self.signal_handler.getGenericCb(signal_name)) 1214 self.bridge.register(signal_name, self.signal_handler.getGenericCb(signal_name))
1214 #plugins 1215 #plugins
1215 for signal_name in ['psEvent', 'roomJoined', 'roomUserJoined', 'roomUserLeft', 'tarotGameStarted', 'tarotGameNew', 'tarotGameChooseContrat', 1216 for signal_name in ['psEvent', 'roomJoined', 'roomUserJoined', 'roomUserLeft', 'tarotGameStarted', 'tarotGameNew', 'tarotGameChooseContrat',
1216 'tarotGameShowCards', 'tarotGameInvalidCards', 'tarotGameCardsPlayed', 'tarotGameYourTurn', 'tarotGameScore', 'tarotGamePlayers', 1217 'tarotGameShowCards', 'tarotGameInvalidCards', 'tarotGameCardsPlayed', 'tarotGameYourTurn', 'tarotGameScore', 'tarotGamePlayers',
1217 'radiocolStarted', 'radiocolPreload', 'radiocolPlay', 'radiocolNoUpload', 'radiocolUploadOk', 'radiocolSongRejected', 'radiocolPlayers', 1218 'radiocolStarted', 'radiocolPreload', 'radiocolPlay', 'radiocolNoUpload', 'radiocolUploadOk', 'radiocolSongRejected', 'radiocolPlayers',