comparison frontends/src/wix/chat.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 f98bef71a918
children 2c4016921403
comparison
equal deleted inserted replaced
509:64ff046dc201 510:886754295efe
199 event.Veto() 199 event.Veto()
200 self.Hide() 200 self.Hide()
201 201
202 def onEnterPressed(self, event): 202 def onEnterPressed(self, event):
203 """Behaviour when enter pressed in send line.""" 203 """Behaviour when enter pressed in send line."""
204 self.host.bridge.sendMessage(self.target.short if self.type=='group' else self.target, 204 self.host.sendMessage(self.target.short if self.type=='group' else self.target,
205 event.GetString(), 205 event.GetString(),
206 mess_type = "groupchat" if self.type=='group' else "chat", 206 mess_type = "groupchat" if self.type=='group' else "chat",
207 profile_key=self.host.profile) 207 profile_key=self.host.profile)
208 self.textBox.Clear() 208 self.textBox.Clear()
209 209