comparison 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
comparison
equal deleted inserted replaced
638:6821fc06a324 639:99eee75ec1b7
26 26
27 def __init__(self, host): 27 def __init__(self, host):
28 dict.__init__(self) 28 dict.__init__(self)
29 self.host = host 29 self.host = host
30 30
31 def __getitem__(self,to_jid): 31 def __getitem__(self, to_jid):
32 target=JID(to_jid) 32 target = JID(to_jid)
33 if not self.has_key(target.short): 33 if not target.short in self:
34 #we have to create the chat win 34 #we have to create the chat win
35 self[target.short] = self.createChat(target) 35 self[target.short] = self.createChat(target)
36 return dict.__getitem__(self, target.short) 36 return dict.__getitem__(self, target.short)
37 37
38 def createChat(self, target): 38 def createChat(self, target):