Philipp Hörist pushed to branch master at gajim / gajim
Commits:
d9eb3e68 by Philipp Hörist at 2018-07-09T23:37:13+02:00
Blocking: Raise NodeProcessed
- - - - -
1 changed file:
- gajim/common/modules/blocking.py
Changes:
=====================================
gajim/common/modules/blocking.py
=====================================
--- a/gajim/common/modules/blocking.py
+++ b/gajim/common/modules/blocking.py
@@ -79,7 +79,7 @@ class Blocking:
for jid in self.blocked:
self._presence_probe(jid)
log.info('Unblock all Push')
- return
+ raise nbxmpp.NodeProcessed
for item in items:
# Unblock some contacts
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/d9eb3e6891d70887902f76f55e7dd81530…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/d9eb3e6891d70887902f76f55e7dd81530…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
eb1b6f60 by Philipp Hörist at 2018-07-09T20:15:13+02:00
Dump certificate before writing it to storage
- - - - -
1 changed file:
- gajim/gui_interface.py
Changes:
=====================================
gajim/gui_interface.py
=====================================
--- a/gajim/gui_interface.py
+++ b/gajim/gui_interface.py
@@ -47,6 +47,8 @@ from gi.repository import GLib
from gi.repository import Gio
from gi.repository import Gdk
+import OpenSSL
+
try:
from PIL import Image
except:
@@ -1324,20 +1326,24 @@ class Interface:
def on_ok(is_checked):
del self.instances[account]['online_dialog']['ssl_error']
if is_checked[0]:
+
+ pem = OpenSSL.crypto.dump_certificate(
+ OpenSSL.crypto.FILETYPE_PEM, obj.cert).decode('utf-8')
+
# Check if cert is already in file
certs = ''
my_ca_certs = configpaths.get('MY_CACERTS')
if os.path.isfile(my_ca_certs):
with open(my_ca_certs, encoding='utf-8') as f:
certs = f.read()
- if obj.cert in certs:
+ if pem in certs:
dialogs.ErrorDialog(_('Certificate Already in File'),
_('This certificate is already in file %s, so it\'s '
'not added again.') % my_ca_certs)
else:
with open(my_ca_certs, 'a', encoding='utf-8') as f:
f.write(server + '\n')
- f.write(obj.cert + '\n\n')
+ f.write(pem + '\n\n')
if is_checked[1]:
ignore_ssl_errors = app.config.get_per('accounts', account,
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/eb1b6f605a0d7422bb1e12e8258f63d9ae…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/eb1b6f605a0d7422bb1e12e8258f63d9ae…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
828d7457 by Philipp Hörist at 2018-07-09T19:52:57+02:00
Remove print statement
- - - - -
1 changed file:
- gajim/common/connection.py
Changes:
=====================================
gajim/common/connection.py
=====================================
--- a/gajim/common/connection.py
+++ b/gajim/common/connection.py
@@ -1268,7 +1268,7 @@ class Connection(CommonConnection, ConnectionHandlers):
self._get_posh_file(self._hostname)
self._posh_requested = True
cert_hash256 = self._calculate_cert_sha256(cert)
- print(cert_hash256)
+
if cert_hash256 in self._posh_hashes:
# Ignore this error if this cert is
# verifyed with POSH
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/828d74570ad93c3657e291f8e876ec854f…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/828d74570ad93c3657e291f8e876ec854f…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
c25a4a0a by Philipp Hörist at 2018-07-08T21:28:02+02:00
Fallback to account name when label is missing
Fixes #9236
- - - - -
1 changed file:
- gajim/common/app.py
Changes:
=====================================
gajim/common/app.py
=====================================
--- a/gajim/common/app.py
+++ b/gajim/common/app.py
@@ -397,7 +397,8 @@ def get_enabled_accounts_with_labels(exclude_local=True):
accounts = []
for acc in connections:
if not exclude_local or acc != 'Local':
- acc_label = config.get_per('accounts', acc, 'account_label')
+ acc_label = config.get_per(
+ 'accounts', acc, 'account_label') or acc
accounts.append([acc, acc_label])
accounts.sort(key=lambda xs: str.lower(xs[1]))
return accounts
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/c25a4a0aabbaa8145bb1319c18d387f467…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/c25a4a0aabbaa8145bb1319c18d387f467…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
3438b060 by Philipp Hörist at 2018-07-08T19:50:27+02:00
Fix JoinGroupchat hotkey if zeroconf is active
- - - - -
1 changed file:
- gajim/roster_window.py
Changes:
=====================================
gajim/roster_window.py
=====================================
--- a/gajim/roster_window.py
+++ b/gajim/roster_window.py
@@ -5521,9 +5521,10 @@ class RosterWindow:
"""
# find a connected account:
for account in app.connections:
+ if account == 'Local':
+ continue
if app.account_is_connected(account):
- break
- self.on_join_gc_activate(None, account)
+ self.on_join_gc_activate(None, account)
return True
def fill_column(self, col):
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/3438b06069bc4470aa56dfc8562d953e4b…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/3438b06069bc4470aa56dfc8562d953e4b…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
78d16c44 by Philipp Hörist at 2018-07-08T17:06:12+02:00
Register PEP module first
Other modules depend on it
- - - - -
1 changed file:
- gajim/common/modules/__init__.py
Changes:
=====================================
gajim/common/modules/__init__.py
=====================================
--- a/gajim/common/modules/__init__.py
+++ b/gajim/common/modules/__init__.py
@@ -28,7 +28,12 @@ for file in Path(__file__).parent.iterdir():
module = import_module('.%s' % file.stem, package='gajim.common.modules')
if hasattr(module, 'get_instance'):
log.info('Load module: %s', file.stem)
- imported_modules.append(module)
+ if file.stem == 'pep':
+ # Register the PEP module first, because other modules
+ # depend on it
+ imported_modules.insert(0, module)
+ else:
+ imported_modules.append(module)
class ModuleMock:
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/78d16c44f3f9171a31add9e80e3f2658c0…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/78d16c44f3f9171a31add9e80e3f2658c0…
You're receiving this email because of your account on dev.gajim.org.