diff frontends/src/quick_frontend/quick_chat_list.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 99eee75ec1b7
children 1fe00f0c9a91
line wrap: on
line diff
--- a/frontends/src/quick_frontend/quick_chat_list.py	Mon Oct 28 19:04:49 2013 +0100
+++ b/frontends/src/quick_frontend/quick_chat_list.py	Tue Oct 29 16:26:55 2013 +0100
@@ -30,10 +30,10 @@
 
     def __getitem__(self, to_jid):
         target = JID(to_jid)
-        if not target.short in self:
+        if not target.bare in self:
             #we have to create the chat win
-            self[target.short] = self.createChat(target)
-        return dict.__getitem__(self, target.short)
+            self[target.bare] = self.createChat(target)
+        return dict.__getitem__(self, target.bare)
 
     def createChat(self, target):
         raise NotImplementedError