comparison frontends/src/quick_frontend/quick_profile_manager.py @ 1409:3265a2639182

massive (preventive) addition of 'u' (unicode) before the strings passed to logging functions
author souliane <souliane@mailoo.org>
date Thu, 16 Apr 2015 14:57:57 +0200
parents ff86abc12206
children 039d96e131be
comparison
equal deleted inserted replaced
1408:8a7145138330 1409:3265a2639182
176 login = self.getJID() 176 login = self.getJID()
177 password = self.getPassword() 177 password = self.getPassword()
178 if login != self.current.login and self.current.login is not None: 178 if login != self.current.login and self.current.login is not None:
179 self.current.login = login 179 self.current.login = login
180 self.host.bridge.setParam("JabberID", login, "Connection", profile_key=self.current.profile) 180 self.host.bridge.setParam("JabberID", login, "Connection", profile_key=self.current.profile)
181 log.info("login updated for profile [{}]".format(self.current.profile)) 181 log.info(u"login updated for profile [{}]".format(self.current.profile))
182 if password != self.current.password and self.current.password is not None: 182 if password != self.current.password and self.current.password is not None:
183 self.current.password = password 183 self.current.password = password
184 self.host.bridge.setParam("Password", password, "Connection", profile_key=self.current.profile) 184 self.host.bridge.setParam("Password", password, "Connection", profile_key=self.current.profile)
185 log.info("password updated for profile [{}]".format(self.current.profile)) 185 log.info(u"password updated for profile [{}]".format(self.current.profile))
186 186
187 ## graphic updates (should probably be overriden in frontends) ## 187 ## graphic updates (should probably be overriden in frontends) ##
188 188
189 def resetFields(self): 189 def resetFields(self):
190 """Set profile to None, and reset fields""" 190 """Set profile to None, and reset fields"""