Mercurial > libervia-backend
diff frontends/wix/main_window.py @ 80:9681f18d06bd
wix: basic dialog to join MUC room, jid node is now displayed in conversations instead of full jid
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 01 Apr 2010 18:57:57 +1100 |
parents | 7322a41f8a8e |
children | 104a815bb23f |
line wrap: on
line diff
--- a/frontends/wix/main_window.py Wed Mar 31 19:56:43 2010 +1100 +++ b/frontends/wix/main_window.py Thu Apr 01 18:57:57 2010 +1100 @@ -400,7 +400,17 @@ def onJoinRoom(self, e): warning('FIXME: temporary menu, must be improved') - self.bridge.joinMUC("conference.necton2.int", "test", "Goffi \o/", self.profile) + #TODO: a proper MUC room joining dialog with nickname etc + dlg = wx.TextEntryDialog( + self, _("Please enter MUC's JID"), + _('Entering a MUC room'), _('test@conference.necton2.int')) + #_('Entering a MUC room'), _('room@muc_service.server.tld')) + if dlg.ShowModal() == wx.ID_OK: + room_jid=JID(dlg.GetValue()) + if room_jid.is_valid(): + self.bridge.joinMUC(room_jid.domain, room_jid.node, self.profiles[self.profile]['whoami'].node, self.profile) + else: + error (_("'%s' is an invalid JID !"), room_jid) def onFindGateways(self, e): debug(_("Find Gateways request"))