comparison frontends/quick_frontend/quick_app.py @ 117:1f0fd6f03e2b

misc fixes
author Goffi <goffi@goffi.org>
date Sat, 03 Jul 2010 12:01:01 +0800
parents 94011f553cd0
children ded2431cea5a
comparison
equal deleted inserted replaced
116:7c482ecac0ff 117:1f0fd6f03e2b
188 pass 188 pass
189 189
190 def presenceUpdate(self, jabber_id, show, priority, statuses, profile): 190 def presenceUpdate(self, jabber_id, show, priority, statuses, profile):
191 if not self.__check_profile(profile): 191 if not self.__check_profile(profile):
192 return 192 return
193 print "check ok"
194 debug (_("presence update for %(jid)s (show=%(show)s, priority=%(priority)s, statuses=%(statuses)s) [profile:%(profile)s]") % {'jid':jabber_id, 'show':show, 'priority':priority, 'statuses':statuses, 'profile':profile}); 193 debug (_("presence update for %(jid)s (show=%(show)s, priority=%(priority)s, statuses=%(statuses)s) [profile:%(profile)s]") % {'jid':jabber_id, 'show':show, 'priority':priority, 'statuses':statuses, 'profile':profile});
195 from_jid=JID(jabber_id) 194 from_jid=JID(jabber_id)
196 debug ("from_jid.short=%(from_jid)s whoami.short=%(whoami)s" % {'from_jid':from_jid.short, 'whoami':self.profiles[profile]['whoami'].short}) 195 debug ("from_jid.short=%(from_jid)s whoami.short=%(whoami)s" % {'from_jid':from_jid.short, 'whoami':self.profiles[profile]['whoami'].short})
197 196
198 if from_jid.short==self.profiles[profile]['whoami'].short: 197 if from_jid.short==self.profiles[profile]['whoami'].short:
282 281
283 def tarotGameNew(self, room_jid, hand, profile): 282 def tarotGameNew(self, room_jid, hand, profile):
284 if not self.__check_profile(profile): 283 if not self.__check_profile(profile):
285 return 284 return
286 debug (_("New Tarot Game")) 285 debug (_("New Tarot Game"))
287 print "room: %s, hand: %s" % (room_jid,hand)
288 if self.chat_wins.has_key(room_jid): 286 if self.chat_wins.has_key(room_jid):
289 self.chat_wins[room_jid].getGame("Tarot").newGame(hand) 287 self.chat_wins[room_jid].getGame("Tarot").newGame(hand)
290 288
291 def tarotChooseContrat(self, room_jid, xml_data, profile): 289 def tarotChooseContrat(self, room_jid, xml_data, profile):
292 """Called when the player has too select his contrat""" 290 """Called when the player has too select his contrat"""