comparison libervia.tac @ 153:ada146bac8fe

server side: fixed tarotGameReady call
author Goffi <goffi@goffi.org>
date Sun, 30 Dec 2012 18:54:17 +0100
parents a159cc29b556
children 82043fe5be4d
comparison
equal deleted inserted replaced
152:7e87c87b7952 153:ada146bac8fe
289 return map(lambda x: _join(MEDIA_DIR, x[len(_media_dir):]),glob.glob(_join(_media_dir,CARDS_DIR,'*_*.png'))); 289 return map(lambda x: _join(MEDIA_DIR, x[len(_media_dir):]),glob.glob(_join(_media_dir,CARDS_DIR,'*_*.png')));
290 290
291 def jsonrpc_tarotGameReady(self, player, referee): 291 def jsonrpc_tarotGameReady(self, player, referee):
292 """Tell to the server that we are ready to start the game""" 292 """Tell to the server that we are ready to start the game"""
293 profile = ISATSession(self.session).profile 293 profile = ISATSession(self.session).profile
294 self.sat_host.bridge.tarotGameReady(player, referee) 294 self.sat_host.bridge.tarotGameReady(player, referee, profile)
295 295
296 def jsonrpc_tarotGameContratChoosed(self, player_nick, referee, contrat): 296 def jsonrpc_tarotGameContratChoosed(self, player_nick, referee, contrat):
297 """Tell to the server that we are ready to start the game""" 297 """Tell to the server that we are ready to start the game"""
298 profile = ISATSession(self.session).profile 298 profile = ISATSession(self.session).profile
299 self.sat_host.bridge.tarotGameContratChoosed(player_nick, referee, contrat, profile) 299 self.sat_host.bridge.tarotGameContratChoosed(player_nick, referee, contrat, profile)