Mercurial > libervia-web
comparison src/browser/sat_browser/menu.py @ 574:b07f0fe2763a
browser_side: safer attributes handling in getOrCreateLiberviaWidget + use it to create MUC panels
author | souliane <souliane@mailoo.org> |
---|---|
date | Sat, 18 Oct 2014 13:16:56 +0200 |
parents | dd43132684b9 |
children | a5019e62c3e9 |
comparison
equal
deleted
inserted
replaced
573:12823bcbd05b | 574:b07f0fe2763a |
---|---|
154 if self.host.whoami: | 154 if self.host.whoami: |
155 nick = self.host.whoami.node | 155 nick = self.host.whoami.node |
156 if room_jid not in [room.bare for room in self.host.room_list]: | 156 if room_jid not in [room.bare for room in self.host.room_list]: |
157 self.host.bridge.call('joinMUC', lambda room_jid: invite(room_jid, contacts), room_jid, nick) | 157 self.host.bridge.call('joinMUC', lambda room_jid: invite(room_jid, contacts), room_jid, nick) |
158 else: | 158 else: |
159 self.host.getOrCreateLiberviaWidget(panels.ChatPanel, (room_jid, "group"), True, jid.JID(room_jid).bare) | 159 self.host.getOrCreateLiberviaWidget(panels.ChatPanel, {'item': room_jid, 'type_': "group"}, True, jid.JID(room_jid).bare) |
160 invite(room_jid, contacts) | 160 invite(room_jid, contacts) |
161 | 161 |
162 dialog.RoomAndContactsChooser(self.host, join, ok_button="Join", visible=(True, False)) | 162 dialog.RoomAndContactsChooser(self.host, join, ok_button="Join", visible=(True, False)) |
163 | 163 |
164 def onCollectiveRadio(self): | 164 def onCollectiveRadio(self): |