Philipp Hörist pushed to branch master at gajim / gajim
Commits:
abb9782f by lovetox at 2020-03-23T18:38:25+01:00
RemoveAccount: Change success message
- - - - -
832c8af9 by lovetox at 2020-03-23T18:38:25+01:00
Update .pylintrc
- - - - -
2 changed files:
- gajim/gtk/remove_account.py
- pylintrc
Changes:
=====================================
gajim/gtk/remove_account.py
=====================================
@@ -54,7 +54,7 @@ class RemoveAccount(Assistant):
success.set_title(_('Account Removed'))
success.set_heading(_('Account Removed'))
success.set_text(
- _('Your account has has been unregistered successfully.'))
+ _('Your account has has been removed successfully.'))
error = self.add_default_page('error')
error.set_title(_('Account Removal Failed'))
=====================================
pylintrc
=====================================
@@ -83,7 +83,7 @@ output-format=text
reports=no
# Activate the evaluation score.
-score=yes
+score=no
[REFACTORING]
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/compare/801d0952924eed574e24fd91ea5fbe6…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/compare/801d0952924eed574e24fd91ea5fbe6…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
cc600fd9 by lovetox at 2020-03-22T22:14:39+01:00
Interface: Set missing connection type on account creation
- - - - -
1 changed file:
- gajim/gui_interface.py
Changes:
=====================================
gajim/gui_interface.py
=====================================
@@ -1684,6 +1684,7 @@ class Interface:
host, port = host.split(':')
config['custom_port'] = int(port)
config['custom_host'] = host
+ config['custom_type'] = type_.value
app.config.add_per('accounts', account)
for opt in config:
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/cc600fd99114f9f49791196e19345752…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/cc600fd99114f9f49791196e19345752…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / python-nbxmpp
Commits:
3e5e6efc by lovetox at 2020-03-22T21:51:41+01:00
Client: Add property custom_host
- - - - -
1 changed file:
- nbxmpp/client.py
Changes:
=====================================
nbxmpp/client.py
=====================================
@@ -167,6 +167,10 @@ class Client(Observable):
def set_mode(self, mode):
self._mode = mode
+ @property
+ def custom_host(self):
+ return self._custom_host
+
def set_custom_host(self, host, protocol, type_):
if self._domain is None:
raise ValueError('Call set_domain() first before set_custom_host()')
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/-/commit/3e5e6efc2a6169266ff3307b…
--
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/-/commit/3e5e6efc2a6169266ff3307b…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
720b0c50 by lovetox at 2020-03-22T18:49:43+01:00
Add license to gstreamer module
- - - - -
b32e8ca7 by lovetox at 2020-03-22T19:40:40+01:00
Accounts: Add connection type setting for custom host
- - - - -
4 changed files:
- gajim/common/config.py
- gajim/common/helpers.py
- gajim/gtk/accounts.py
- gajim/gtk/gstreamer.py
Changes:
=====================================
gajim/common/config.py
=====================================
@@ -308,6 +308,7 @@ class Config:
'use_custom_host': [opt_bool, False, '', True],
'custom_port': [opt_int, 5222, '', True],
'custom_host': [opt_str, '', '', True],
+ 'custom_type': [opt_str, 'START TLS', _('ConnectionType: START TLS, DIRECT TLS or PLAIN'), True],
'sync_with_global_status': [opt_bool, False, ],
'no_log_for': [opt_str, '', _('List of XMPP Addresses (space separated) for which you do not want to store chat history. You can also add the name of an account to disable storing chat history for this account.')],
'attached_gpg_keys': [opt_str, ''],
=====================================
gajim/common/helpers.py
=====================================
@@ -1775,9 +1775,10 @@ def get_custom_host(account):
return
host = app.config.get_per('accounts', account, 'custom_host')
port = app.config.get_per('accounts', account, 'custom_port')
+ type_ = app.config.get_per('accounts', account, 'custom_type')
return ('%s:%s' % (host, port),
ConnectionProtocol.TCP,
- ConnectionType.DIRECT_TLS)
+ ConnectionType(type_))
def warn_about_plain_connection(account, connection_types):
=====================================
gajim/gtk/accounts.py
=====================================
@@ -764,6 +764,8 @@ class PriorityDialog(SettingsDialog):
class CutstomHostnameDialog(SettingsDialog):
def __init__(self, account, parent):
+ type_values = ('START TLS', 'DIRECT TLS', 'PLAIN')
+
settings = [
Setting(SettingKind.SWITCH, _('Enable'),
SettingType.ACCOUNT_CONFIG,
@@ -776,6 +778,11 @@ class CutstomHostnameDialog(SettingsDialog):
Setting(SettingKind.ENTRY, _('Port'),
SettingType.ACCOUNT_CONFIG, 'custom_port',
enabledif=('custom', True)),
+
+ Setting(SettingKind.COMBO, _('Type'),
+ SettingType.ACCOUNT_CONFIG, 'custom_type',
+ enabledif=('custom', True),
+ props={'combo_items': type_values}),
]
SettingsDialog.__init__(self, parent, _('Connection Settings'),
=====================================
gajim/gtk/gstreamer.py
=====================================
@@ -1,3 +1,17 @@
+# This file is part of Gajim.
+#
+# Gajim is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published
+# by the Free Software Foundation; version 3 only.
+#
+# Gajim is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with Gajim. If not, see <http://www.gnu.org/licenses/>.
+
try:
from gi.repository import Gst
except Exception:
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/compare/86164a02969b50c660cf1299ec27487…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/compare/86164a02969b50c660cf1299ec27487…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / python-nbxmpp
Commits:
1031b9af by lovetox at 2020-03-22T18:30:40+01:00
Register: Handle errors when requesting the register form
- - - - -
1 changed file:
- nbxmpp/modules/register.py
Changes:
=====================================
nbxmpp/modules/register.py
=====================================
@@ -59,8 +59,10 @@ class Register(BaseModule):
@callback
def _on_register_form(self, stanza):
- query = stanza.getQuery()
+ if not isResultNode(stanza):
+ return raise_error(self._log.info, stanza)
+ query = stanza.getQuery()
instructions = query.getTagData('instructions') or None
data = RegisterData(instructions=instructions,
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/-/commit/1031b9afc7acd5606158bb54…
--
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/-/commit/1031b9afc7acd5606158bb54…
You're receiving this email because of your account on dev.gajim.org.