Mercurial > libervia-backend
comparison frontends/wix/profile_manager.py @ 113:e5ca22113280
Primitivus: profile manager
- new custom widgets: Password, List, GenericDialog, InputDialog, ConfirmationDialog
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 01 Jul 2010 15:35:56 +0800 |
parents | 23caf1051099 |
children |
comparison
equal
deleted
inserted
replaced
112:f551e44adb25 | 113:e5ca22113280 |
---|---|
136 assert(profile) | 136 assert(profile) |
137 old_jid = self.host.bridge.getParamA("JabberID", "Connection", profile_key=profile) | 137 old_jid = self.host.bridge.getParamA("JabberID", "Connection", profile_key=profile) |
138 old_pass = self.host.bridge.getParamA("Password", "Connection", profile_key=profile) | 138 old_pass = self.host.bridge.getParamA("Password", "Connection", profile_key=profile) |
139 new_jid = self.login_jid.GetValue() | 139 new_jid = self.login_jid.GetValue() |
140 new_pass = self.login_pass.GetValue() | 140 new_pass = self.login_pass.GetValue() |
141 print "old: %s, new: %s, old_pass: %s, new_pass: %s" % (old_jid, new_jid, old_pass, new_pass) | |
142 if old_jid != new_jid: | 141 if old_jid != new_jid: |
143 debug(_('Saving new JID and server')) | 142 debug(_('Saving new JID and server')) |
144 self.host.bridge.setParam("JabberID", new_jid, "Connection", profile) | 143 self.host.bridge.setParam("JabberID", new_jid, "Connection", profile) |
145 self.host.bridge.setParam("Server", JID(new_jid).domain, "Connection", profile) | 144 self.host.bridge.setParam("Server", JID(new_jid).domain, "Connection", profile) |
146 if old_pass != new_pass: | 145 if old_pass != new_pass: |