diff frontends/src/wix/chat.py @ 688:f7878ad3c846

tools: renamed tools.jid.JID attribute "short" to "bare"
author souliane <souliane@mailoo.org>
date Tue, 29 Oct 2013 16:26:55 +0100
parents 6821fc06a324
children bfabeedbf32e
line wrap: on
line diff
--- a/frontends/src/wix/chat.py	Mon Oct 28 19:04:49 2013 +0100
+++ b/frontends/src/wix/chat.py	Tue Oct 29 16:26:55 2013 +0100
@@ -199,7 +199,7 @@
 
     def onEnterPressed(self, event):
         """Behaviour when enter pressed in send line."""
-        self.host.sendMessage(self.target.short if self.type == 'group' else self.target,
+        self.host.sendMessage(self.target.bare if self.type == 'group' else self.target,
                               event.GetString(),
                               mess_type="groupchat" if self.type == 'group' else "chat",
                               profile_key=self.host.profile)
@@ -257,9 +257,9 @@
         if filename:
             debug(_("filename: %s"),filename)
             #FIXME: check last_resource: what if self.target.resource exists ?
-            last_resource = self.host.bridge.getLastResource(unicode(self.target.short), self.host.profile)
+            last_resource = self.host.bridge.getLastResource(unicode(self.target.bare), self.host.profile)
             if last_resource:
-                full_jid = JID("%s/%s" % (self.target.short, last_resource))
+                full_jid = JID("%s/%s" % (self.target.bare, last_resource))
             else:
                 full_jid = self.target
             id = self.host.bridge.sendFile(full_jid, filename, {}, self.host.profile)