diff frontends/src/quick_frontend/quick_chat_list.py @ 639:99eee75ec1b7

core: better handling of profile_key and don't write the param file anymore - new error ProfileNotSetError and some methods use the default @NONE@ instead of @DEFAULT@ - do not output the .sat/param file anymore, it is not needed and created confusion - plugin XEP-0054: remove an error message at startup
author souliane <souliane@mailoo.org>
date Thu, 05 Sep 2013 21:03:52 +0200
parents 6821fc06a324
children f7878ad3c846
line wrap: on
line diff
--- a/frontends/src/quick_frontend/quick_chat_list.py	Thu Sep 05 20:57:00 2013 +0200
+++ b/frontends/src/quick_frontend/quick_chat_list.py	Thu Sep 05 21:03:52 2013 +0200
@@ -28,9 +28,9 @@
         dict.__init__(self)
         self.host = host
 
-    def __getitem__(self,to_jid):
-        target=JID(to_jid)
-        if not self.has_key(target.short):
+    def __getitem__(self, to_jid):
+        target = JID(to_jid)
+        if not target.short in self:
             #we have to create the chat win
             self[target.short] = self.createChat(target)
         return dict.__getitem__(self, target.short)