comparison src/browser/sat_browser/card_game.py @ 580:79fbc20c786b

browser_side: fixes call to logging method with more than one argument
author souliane <souliane@mailoo.org>
date Sun, 19 Oct 2014 12:32:08 +0200
parents 67a4e8383b70
children
comparison
equal deleted inserted replaced
579:4a0f2f294ea2 580:79fbc20c786b
175 def loadCards(self): 175 def loadCards(self):
176 """Load all the cards in memory""" 176 """Load all the cards in memory"""
177 def _getTarotCardsPathsCb(paths): 177 def _getTarotCardsPathsCb(paths):
178 log.debug("_getTarotCardsPathsCb") 178 log.debug("_getTarotCardsPathsCb")
179 for file_ in paths: 179 for file_ in paths:
180 log.debug("path:", file_) 180 log.debug("path: %s" % file_)
181 card = CardWidget(self, file_) 181 card = CardWidget(self, file_)
182 log.debug("card:", card) 182 log.debug("card: %s" % card)
183 self.cards[(card.suit, card.value)] = card 183 self.cards[(card.suit, card.value)] = card
184 self.deck.append(card) 184 self.deck.append(card)
185 self._parent.host.bridge.call('tarotGameReady', None, self.player_nick, self.referee) 185 self._parent.host.bridge.call('tarotGameReady', None, self.player_nick, self.referee)
186 self.cards = {} 186 self.cards = {}
187 self.deck = [] 187 self.deck = []