Mercurial > libervia-backend
comparison 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 |
comparison
equal
deleted
inserted
replaced
79:db0a0f000e37 | 80:9681f18d06bd |
---|---|
398 debug (_('Profile received: [%s]') % data) | 398 debug (_('Profile received: [%s]') % data) |
399 profile=Profile(self, data) | 399 profile=Profile(self, data) |
400 | 400 |
401 def onJoinRoom(self, e): | 401 def onJoinRoom(self, e): |
402 warning('FIXME: temporary menu, must be improved') | 402 warning('FIXME: temporary menu, must be improved') |
403 self.bridge.joinMUC("conference.necton2.int", "test", "Goffi \o/", self.profile) | 403 #TODO: a proper MUC room joining dialog with nickname etc |
404 dlg = wx.TextEntryDialog( | |
405 self, _("Please enter MUC's JID"), | |
406 _('Entering a MUC room'), _('test@conference.necton2.int')) | |
407 #_('Entering a MUC room'), _('room@muc_service.server.tld')) | |
408 if dlg.ShowModal() == wx.ID_OK: | |
409 room_jid=JID(dlg.GetValue()) | |
410 if room_jid.is_valid(): | |
411 self.bridge.joinMUC(room_jid.domain, room_jid.node, self.profiles[self.profile]['whoami'].node, self.profile) | |
412 else: | |
413 error (_("'%s' is an invalid JID !"), room_jid) | |
404 | 414 |
405 def onFindGateways(self, e): | 415 def onFindGateways(self, e): |
406 debug(_("Find Gateways request")) | 416 debug(_("Find Gateways request")) |
407 id = self.bridge.findGateways(self.profiles[self.profile]['whoami'].domain) | 417 id = self.bridge.findGateways(self.profiles[self.profile]['whoami'].domain) |
408 self.current_action_ids.add(id) | 418 self.current_action_ids.add(id) |