Mercurial > libervia-web
comparison libervia.tac @ 41:7782a786b2f0
Tarot game: score is now shown (need to use XMLUI later)
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 22 May 2011 17:56:59 +0200 |
parents | 305e81c7a32c |
children | 2744dd31e8a5 |
comparison
equal
deleted
inserted
replaced
40:49f1829fb928 | 41:7782a786b2f0 |
---|---|
365 import sys | 365 import sys |
366 sys.exit(1) | 366 sys.exit(1) |
367 self.bridge.register("connected", self.signal_handler.connected) | 367 self.bridge.register("connected", self.signal_handler.connected) |
368 self.bridge.register("connectionError", self.signal_handler.connectionError) | 368 self.bridge.register("connectionError", self.signal_handler.connectionError) |
369 for signal_name in ['presenceUpdate', 'personalEvent', 'newMessage', 'roomJoined', 'roomUserJoined', 'roomUserLeft', 'tarotGameStarted', 'tarotGameNew', | 369 for signal_name in ['presenceUpdate', 'personalEvent', 'newMessage', 'roomJoined', 'roomUserJoined', 'roomUserLeft', 'tarotGameStarted', 'tarotGameNew', |
370 'tarotGameChooseContrat', 'tarotGameShowCards', 'tarotGameInvalidCards', 'tarotGameCardsPlayed', 'tarotGameYourTurn']: | 370 'tarotGameChooseContrat', 'tarotGameShowCards', 'tarotGameInvalidCards', 'tarotGameCardsPlayed', 'tarotGameYourTurn', 'tarotGameScore']: |
371 self.bridge.register(signal_name, self.signal_handler.getGenericCb(signal_name)) | 371 self.bridge.register(signal_name, self.signal_handler.getGenericCb(signal_name)) |
372 root.putChild('json_signal_api', self.signal_handler) | 372 root.putChild('json_signal_api', self.signal_handler) |
373 root.putChild('json_api', MethodHandler(self)) | 373 root.putChild('json_api', MethodHandler(self)) |
374 root.putChild('register_api', _register) | 374 root.putChild('register_api', _register) |
375 root.putChild('blog', MicroBlog(self)) | 375 root.putChild('blog', MicroBlog(self)) |