Philipp Hörist pushed to branch master at gajim / gajim
Commits:
9678acc3 by mimi89999 at 2021-02-19T19:27:14+01:00
Change servers.json format
- - - - -
2 changed files:
- gajim/data/other/servers.json
- gajim/gtk/account_wizard.py
Changes:
=====================================
gajim/data/other/servers.json
=====================================
@@ -1,28 +1,26 @@
-{
- "servers":[
- "0nl1ne.at",
- "blabber.im",
- "creep.im",
- "deshalbfrei.org",
- "draugr.de",
- "jabber.ccc.de",
- "jabber.cz",
- "jabber.meta.net.nz",
- "jabber.no",
- "jabber.sk",
- "jabberes.org",
- "jabbim.com",
- "jabbim.cz",
- "jabbim.pl",
- "jabbim.sk",
- "jabster.pl",
- "lightwitch.org",
- "linuxlovers.at",
- "njs.netlab.cz",
- "tigase.im",
- "ubuntu-jabber.de",
- "ubuntu-jabber.net",
- "verdammung.org",
- "xabber.de"
- ]
-}
+[
+ "0nl1ne.at",
+ "blabber.im",
+ "creep.im",
+ "deshalbfrei.org",
+ "draugr.de",
+ "jabber.ccc.de",
+ "jabber.cz",
+ "jabber.meta.net.nz",
+ "jabber.no",
+ "jabber.sk",
+ "jabberes.org",
+ "jabbim.com",
+ "jabbim.cz",
+ "jabbim.pl",
+ "jabbim.sk",
+ "jabster.pl",
+ "lightwitch.org",
+ "linuxlovers.at",
+ "njs.netlab.cz",
+ "tigase.im",
+ "ubuntu-jabber.de",
+ "ubuntu-jabber.net",
+ "verdammung.org",
+ "xabber.de"
+]
=====================================
gajim/gtk/account_wizard.py
=====================================
@@ -559,7 +559,7 @@ def _on_signup(self, *args):
def _create_server_completion(self):
# Parse servers.json
file_path = configpaths.get('DATA') / 'other' / 'servers.json'
- self._servers = helpers.load_json(file_path, 'servers', [])
+ self._servers = helpers.load_json(file_path, default=[])
# Create a separate model for the address entry, because it will
# be updated with our localpart@
@@ -658,7 +658,7 @@ def focus(self):
def _create_server_completion(self):
# Parse servers.json
file_path = configpaths.get('DATA') / 'other' / 'servers.json'
- servers = helpers.load_json(file_path, 'servers', [])
+ servers = helpers.load_json(file_path, default=[])
# Create servers_model for comboboxes and entries
servers_model = Gtk.ListStore(str)
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/9678acc3c7124b0d2318726f65ba709b15fc240e
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/9678acc3c7124b0d2318726f65ba709b15fc240e
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits