Mercurial > libervia-backend
comparison src/stdui/ui_profile_manager.py @ 1088:b29452cab50b
core, memory, plugins, stdui, frontends: look for DNS SRV records when server is not specified:
- fix bug 3
- modify "Connection" params:
- rename "Server" to "Force server" and "Port" to "Force port"
- set the default value to empty string for both
author | souliane <souliane@mailoo.org> |
---|---|
date | Mon, 23 Jun 2014 00:44:10 +0200 |
parents | 6ec513ad92c2 |
children | 8e0072754413 |
comparison
equal
deleted
inserted
replaced
1087:b3b7a2863060 | 1088:b29452cab50b |
---|---|
108 defer.returnValue({'authenticated_profile': profile, 'caller': data['caller']}) | 108 defer.returnValue({'authenticated_profile': profile, 'caller': data['caller']}) |
109 | 109 |
110 def _changeXMPPPassword(self, data, profile): | 110 def _changeXMPPPassword(self, data, profile): |
111 session_data = self._sessions.profileGetUnique(profile) | 111 session_data = self._sessions.profileGetUnique(profile) |
112 if not session_data: | 112 if not session_data: |
113 server = self.host.memory.getParamA("Server", "Connection", profile_key=profile) | 113 server = self.host.memory.getParamA(C.FORCE_SERVER_PARAM, "Connection", profile_key=profile) |
114 session_id, session_data = self._sessions.newSession({'count': 0, 'server': server}, profile) | 114 session_id, session_data = self._sessions.newSession({'count': 0, 'server': server}, profile) |
115 if session_data['count'] > 2: # 3 attempts with a new password after the initial try | 115 if session_data['count'] > 2: # 3 attempts with a new password after the initial try |
116 self._sessions.profileDelUnique(profile) | 116 self._sessions.profileDelUnique(profile) |
117 _dialog = xml_tools.XMLUI('popup', title=D_('Connection error')) | 117 _dialog = xml_tools.XMLUI('popup', title=D_('Connection error')) |
118 _dialog.addText(D_("Can't connect to %s. Please check your connection details.") % session_data['server']) | 118 _dialog.addText(D_("Can't connect to %s. Please check your connection details.") % session_data['server']) |