Mercurial > libervia-backend
diff 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 |
line wrap: on
line diff
--- a/frontends/src/wix/profile_manager.py Sun Sep 08 19:18:46 2013 +0200 +++ b/frontends/src/wix/profile_manager.py Sat Sep 07 02:03:17 2013 +0200 @@ -145,11 +145,11 @@ new_pass = self.login_pass.GetValue() if old_jid != new_jid: debug(_('Saving new JID and server')) - self.host.bridge.setParam("JabberID", new_jid, "Connection", profile) - self.host.bridge.setParam("Server", JID(new_jid).domain, "Connection", profile) + self.host.bridge.setParam("JabberID", new_jid, "Connection", profile_key=profile) + self.host.bridge.setParam("Server", JID(new_jid).domain, "Connection", profile_key=profile) if old_pass != new_pass: debug(_('Saving new password')) - self.host.bridge.setParam("Password", new_pass, "Connection", profile) + self.host.bridge.setParam("Password", new_pass, "Connection", profile_key=profile) self.host.plug_profile(profile)