comparison frontends/src/wix/profile_manager.py @ 641:49587e170f53

core: added the security_limit to setParam - params with a security greater than security_limit can not be modified - special value: security_limit < 0 disable the check (all params can be modified)
author souliane <souliane@mailoo.org>
date Sat, 07 Sep 2013 02:03:17 +0200
parents 84a6e83157c2
children bfabeedbf32e
comparison
equal deleted inserted replaced
640:8211b462af6b 641:49587e170f53
143 def __old_passReceived(self, old_jid, old_pass, profile): 143 def __old_passReceived(self, old_jid, old_pass, profile):
144 new_jid = self.login_jid.GetValue() 144 new_jid = self.login_jid.GetValue()
145 new_pass = self.login_pass.GetValue() 145 new_pass = self.login_pass.GetValue()
146 if old_jid != new_jid: 146 if old_jid != new_jid:
147 debug(_('Saving new JID and server')) 147 debug(_('Saving new JID and server'))
148 self.host.bridge.setParam("JabberID", new_jid, "Connection", profile) 148 self.host.bridge.setParam("JabberID", new_jid, "Connection", profile_key=profile)
149 self.host.bridge.setParam("Server", JID(new_jid).domain, "Connection", profile) 149 self.host.bridge.setParam("Server", JID(new_jid).domain, "Connection", profile_key=profile)
150 if old_pass != new_pass: 150 if old_pass != new_pass:
151 debug(_('Saving new password')) 151 debug(_('Saving new password'))
152 self.host.bridge.setParam("Password", new_pass, "Connection", profile) 152 self.host.bridge.setParam("Password", new_pass, "Connection", profile_key=profile)
153 self.host.plug_profile(profile) 153 self.host.plug_profile(profile)
154 154
155 155
156 def getParamError(self, ignore): 156 def getParamError(self, ignore):
157 wx.MessageDialog(self, _("Can't get profile parameter"), _("Profile error"), wx.ICON_ERROR).ShowModal() 157 wx.MessageDialog(self, _("Can't get profile parameter"), _("Profile error"), wx.ICON_ERROR).ShowModal()