comparison libervia.py @ 179:8475a29d7214

closing a group chat widget now leave the muc room (bug 11)
author Goffi <goffi@goffi.org>
date Sat, 26 Jan 2013 00:36:57 +0100
parents 6e39e0eaca35
children cf5c83e7d515
comparison
equal deleted inserted replaced
178:7a349be99a77 179:8475a29d7214
81 81
82 class BridgeCall(LiberviaJsonProxy): 82 class BridgeCall(LiberviaJsonProxy):
83 def __init__(self): 83 def __init__(self):
84 LiberviaJsonProxy.__init__(self, "/json_api", 84 LiberviaJsonProxy.__init__(self, "/json_api",
85 ["getContacts", "addContact", "sendMessage", "sendMblog", "getLastMblogs", "getMassiveLastMblogs", "getProfileJid", "getHistory", "getPresenceStatus", 85 ["getContacts", "addContact", "sendMessage", "sendMblog", "getLastMblogs", "getMassiveLastMblogs", "getProfileJid", "getHistory", "getPresenceStatus",
86 "joinMUC", "getRoomsJoined", "launchTarotGame", "getTarotCardsPaths", "tarotGameReady", "tarotGameContratChoosed", 86 "joinMUC", "mucLeave", "getRoomsJoined", "launchTarotGame", "getTarotCardsPaths", "tarotGameReady", "tarotGameContratChoosed",
87 "tarotGamePlayCards", "launchRadioCollective", "getWaitingSub", "subscription", "delContact", "updateContact", "getEntityData", "getParamsUI", 87 "tarotGamePlayCards", "launchRadioCollective", "getWaitingSub", "subscription", "delContact", "updateContact", "getEntityData", "getParamsUI",
88 #"setParam", 88 #"setParam",
89 "launchAction", "disconnect", 89 "launchAction", "disconnect",
90 ]) 90 ])
91 91
387 self.contact_panel.setConnected(_entity.bare, _entity.resource, show, priority, statuses) 387 self.contact_panel.setConnected(_entity.bare, _entity.resource, show, priority, statuses)
388 388
389 def _roomJoinedCb(self, room_jid, room_nicks, user_nick): 389 def _roomJoinedCb(self, room_jid, room_nicks, user_nick):
390 _target = JID(room_jid) 390 _target = JID(room_jid)
391 self.room_list.add(_target) 391 self.room_list.add(_target)
392 chat_panel = panels.ChatPanel(self, _target, type='group') 392 chat_panel = panels.ChatPanel(self, _target, type_='group')
393 chat_panel.setUserNick(user_nick) 393 chat_panel.setUserNick(user_nick)
394 if _target.node.startswith('sat_tarot_'): #XXX: it's not really beautiful, but it works :) 394 if _target.node.startswith('sat_tarot_'): #XXX: it's not really beautiful, but it works :)
395 self.addTab(chat_panel, "Tarot") 395 self.addTab(chat_panel, "Tarot")
396 elif _target.node.startswith('sat_radiocol_'): 396 elif _target.node.startswith('sat_radiocol_'):
397 self.addTab(chat_panel, "Radio collective") 397 self.addTab(chat_panel, "Radio collective")