diff src/browser/sat_browser/game_tarot.py @ 684:e876f493dccc

browser_side: follow changes made on quick_frontend for chat states and MUC symbols + minor fixes following the refactorisation: - some MUC handlers are no more needed, the presence handler is enough - move the chat states logic to quick_frontend - display MUC games symbols - remove classes contact_list.ContactsPanel, contact_panel.Occupant and contact_panel.OccupantsList - move buildPresenceStyle and setPresenceStyle to html_tools - fixes games menu callback
author souliane <souliane@mailoo.org>
date Wed, 18 Mar 2015 10:17:04 +0100
parents 849ffb24d5bf
children 9877607c719a
line wrap: on
line diff
--- a/src/browser/sat_browser/game_tarot.py	Thu Mar 19 20:41:46 2015 +0100
+++ b/src/browser/sat_browser/game_tarot.py	Wed Mar 18 10:17:04 2015 +0100
@@ -48,6 +48,9 @@
 MIN_HEIGHT = 500
 
 
+unicode = str  # XXX: pyjama doesn't manage unicode
+
+
 class CardWidget(TarotCard, Image, MouseHandler):
     """This class is used to represent a card, graphically and logically"""
 
@@ -400,7 +403,6 @@
             host.bridge.launchTarotGame(other_players, room_jid_s, profile=C.PROF_KEY_NONE)
         dialog.RoomAndContactsChooser(host, onPlayersSelected, 3, title="Tarot", title_invite=_(u"Please select 3 other players"), visible=(False, True))
 
-
     def gotMenus():
         host.menus.addMenu(C.MENU_GLOBAL, (D_(u"Games"), D_(u"Tarot")), callback=onTarotGame)
     host.addListener('gotMenus', gotMenus)