Mercurial > libervia-backend
diff frontends/src/wix/main_window.py @ 510:886754295efe
quick frontend, primitivus, wix: MUC private messages management
/!\ not fully finished, backend part is not done yet /!\
- as resources are discarded to manage chat windows lists, a pretty dirty hack is done to work around this:
full jid is escaped using a prefix (it becomes invalid and resource is preserved).
- new quick_utils module, with helper methods. escapePrivate and unescapePrivate implementations
- MUC private messages are not managed in Wix yet
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 11 Oct 2012 00:48:35 +0200 |
parents | e9634d2e7b38 |
children | 8ee9113d307b |
line wrap: on
line diff
--- a/frontends/src/wix/main_window.py Fri Sep 28 00:48:52 2012 +0200 +++ b/frontends/src/wix/main_window.py Thu Oct 11 00:48:35 2012 +0200 @@ -22,7 +22,6 @@ from sat_frontends.quick_frontend.quick_chat_list import QuickChatList from sat_frontends.quick_frontend.quick_app import QuickApp -from sat_frontends.quick_frontend.quick_contact_management import QuickContactManagement import wx from sat_frontends.wix.contact_list import ContactList from sat_frontends.wix.chat import Chat @@ -31,9 +30,7 @@ from sat_frontends.wix.gateways import GatewaysManager from sat_frontends.wix.profile import Profile from sat_frontends.wix.profile_manager import ProfileManager -import gobject import os.path -import pdb from sat.tools.jid import JID from logging import debug, info, warning, error import sat_frontends.wix.constants @@ -52,9 +49,6 @@ class ChatList(QuickChatList): """This class manage the list of chat windows""" - def __init__(self, host): - QuickChatList.__init__(self, host) - def createChat(self, target): return Chat(target, self.host) @@ -186,8 +180,8 @@ wx.EVT_MENU(self, idFIND_GATEWAYS, self.onFindGateways) - def newMessage(self, from_jid, msg, type, to_jid, profile): - QuickApp.newMessage(self, from_jid, msg, type, to_jid, profile) + def newMessage(self, from_jid, to_jid, msg, _type, profile): + QuickApp.newMessage(self, from_jid, to_jid, msg, _type, profile) def showAlert(self, message): # TODO: place this in a separate class