diff frontends/src/primitivus/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 1def5b7edf9f
line wrap: on
line diff
--- a/frontends/src/primitivus/profile_manager.py	Sun Sep 08 19:18:46 2013 +0200
+++ b/frontends/src/primitivus/profile_manager.py	Sat Sep 07 02:03:17 2013 +0200
@@ -141,10 +141,10 @@
         new_pass = self.pass_wid.get_edit_text()
 
         if old_jid != new_jid:
-            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:
-            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)
 
     def getParamError(self, ignore):