Mercurial > libervia-backend
diff src/memory/params.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 | 854880a31717 |
children | 594fbdda4a87 |
line wrap: on
line diff
--- a/src/memory/params.py Wed Jun 25 14:01:58 2014 +0200 +++ b/src/memory/params.py Mon Jun 23 00:44:10 2014 +0200 @@ -49,8 +49,8 @@ <param name="JabberID" value="name@example.org/SàT" type="string" /> <param name="Password" value="" type="password" /> <param name="Priority" value="50" type="string" /> - <param name="Server" value="example.org" type="string" /> - <param name="Port" value="5222" type="string" /> + <param name="%(force_server_param)s" value="" type="string" /> + <param name="%(force_port_param)s" value="" type="string" /> <param name="NewAccount" label="%(label_NewAccount)s" type="button" callback_id="registerNewAccount"/> <param name="autoconnect" label="%(label_autoconnect)s" value="true" type="bool" /> <param name="autodisconnect" label="%(label_autodisconnect)s" value="false" type="bool" /> @@ -66,7 +66,9 @@ 'label_NewAccount': _("Register new account"), 'label_autoconnect': _('Connect on frontend startup'), 'label_autodisconnect': _('Disconnect on frontend closure'), - 'category_misc': _("Misc") + 'category_misc': _("Misc"), + 'force_server_param': C.FORCE_SERVER_PARAM, + 'force_port_param': C.FORCE_PORT_PARAM, } def load_default_params(self):