comparison 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
comparison
equal deleted inserted replaced
1087:b3b7a2863060 1088:b29452cab50b
47 </category> 47 </category>
48 <category name="Connection" label="%(category_connection)s"> 48 <category name="Connection" label="%(category_connection)s">
49 <param name="JabberID" value="name@example.org/SàT" type="string" /> 49 <param name="JabberID" value="name@example.org/SàT" type="string" />
50 <param name="Password" value="" type="password" /> 50 <param name="Password" value="" type="password" />
51 <param name="Priority" value="50" type="string" /> 51 <param name="Priority" value="50" type="string" />
52 <param name="Server" value="example.org" type="string" /> 52 <param name="%(force_server_param)s" value="" type="string" />
53 <param name="Port" value="5222" type="string" /> 53 <param name="%(force_port_param)s" value="" type="string" />
54 <param name="NewAccount" label="%(label_NewAccount)s" type="button" callback_id="registerNewAccount"/> 54 <param name="NewAccount" label="%(label_NewAccount)s" type="button" callback_id="registerNewAccount"/>
55 <param name="autoconnect" label="%(label_autoconnect)s" value="true" type="bool" /> 55 <param name="autoconnect" label="%(label_autoconnect)s" value="true" type="bool" />
56 <param name="autodisconnect" label="%(label_autodisconnect)s" value="false" type="bool" /> 56 <param name="autodisconnect" label="%(label_autodisconnect)s" value="false" type="bool" />
57 </category> 57 </category>
58 <category name="Misc" label="%(category_misc)s"> 58 <category name="Misc" label="%(category_misc)s">
64 'category_general': _("General"), 64 'category_general': _("General"),
65 'category_connection': _("Connection"), 65 'category_connection': _("Connection"),
66 'label_NewAccount': _("Register new account"), 66 'label_NewAccount': _("Register new account"),
67 'label_autoconnect': _('Connect on frontend startup'), 67 'label_autoconnect': _('Connect on frontend startup'),
68 'label_autodisconnect': _('Disconnect on frontend closure'), 68 'label_autodisconnect': _('Disconnect on frontend closure'),
69 'category_misc': _("Misc") 69 'category_misc': _("Misc"),
70 'force_server_param': C.FORCE_SERVER_PARAM,
71 'force_port_param': C.FORCE_PORT_PARAM,
70 } 72 }
71 73
72 def load_default_params(self): 74 def load_default_params(self):
73 self.dom = minidom.parseString(Params.default_xml.encode('utf-8')) 75 self.dom = minidom.parseString(Params.default_xml.encode('utf-8'))
74 76