Philipp Hörist pushed to branch master at gajim / gajim
Commits:
bd3a0c8a by Philipp Hörist at 2017-06-28T00:43:44+02:00
Only use GStreamer when Farstream is available
To use GStreamer we need to call Gst.Init().
We call Gst.Init() only when Farstream is available.
- - - - -
1 changed file:
- src/config.py
Changes:
=====================================
src/config.py
=====================================
--- a/src/config.py
+++ b/src/config.py
@@ -439,7 +439,7 @@ class PreferencesWindow:
if config == value:
combobox.set_active(index)
- if HAS_GST:
+ if HAS_GST and gajim.HAVE_FARSTREAM:
create_av_combobox('audio_input', AudioInputManager().get_devices())
create_av_combobox('audio_output', AudioOutputManager().get_devices(
))
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/bd3a0c8ac6a81ccfa6aaf8cabe711aa009…
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
1a2d32fc by Philipp Hörist at 2017-06-26T18:09:15+02:00
Better error message why pgp is not working
- - - - -
1 changed file:
- src/roster_window.py
Changes:
=====================================
src/roster_window.py
=====================================
--- a/src/roster_window.py
+++ b/src/roster_window.py
@@ -2130,8 +2130,9 @@ class RosterWindow:
keyid = gajim.config.get_per('accounts', account, 'keyid')
if keyid and not gajim.connections[account].gpg:
dialogs.WarningDialog(_('OpenPGP is not usable'),
- _('You will be connected to %s without OpenPGP.') % \
- account)
+ _('Gajim needs python-gnupg >= 0.3.8\n'
+ 'Beware there is an incompatible python package called gnupg.\n'
+ 'You will be connected to %s without OpenPGP.') % account)
self.send_status_continue(account, status, txt, auto, to)
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/1a2d32fca522fc3eb43c2bdce07d15b70d…
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
7a6d7bae by Philipp Hörist at 2017-06-25T23:14:35+02:00
Set password also on connection object on change
- - - - -
1 changed file:
- src/common/passwords.py
Changes:
=====================================
src/common/passwords.py
=====================================
--- a/src/common/passwords.py
+++ b/src/common/passwords.py
@@ -170,4 +170,6 @@ def get_password(account_name):
return get_storage().get_password(account_name)
def save_password(account_name, password):
+ if account_name in gajim.connections:
+ gajim.connections[account_name].set_password(password)
return get_storage().save_password(account_name, password)
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/7a6d7baebc87bc690826151190eccfd2e9…
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
49a78ae8 by Philipp Hörist at 2017-06-16T23:40:42+02:00
Support IPV6 and IPV4 domainparts
https://tools.ietf.org/html/rfc7622#section-3.2
- - - - -
1 changed file:
- src/common/helpers.py
Changes:
=====================================
src/common/helpers.py
=====================================
--- a/src/common/helpers.py
+++ b/src/common/helpers.py
@@ -173,6 +173,35 @@ def prep(user, server, resource):
"""
# This function comes from
#http://svn.twistedmatrix.com/cvs/trunk/twisted/words/protocols/jabber/jid.py
+
+ ip_address = False
+
+ try:
+ socket.inet_aton(server)
+ ip_address = True
+ except socket.error:
+ pass
+
+ if not ip_address and hasattr(socket, 'inet_pton'):
+ try:
+ socket.inet_pton(socket.AF_INET6, server.strip('[]'))
+ server = '[%s]' % server.strip('[]')
+ ip_address = True
+ except (socket.error, ValueError):
+ pass
+
+ if not ip_address:
+ if server is not None:
+ if len(server) < 1 or len(server) > 1023:
+ raise InvalidFormat(_('Server must be between 1 and 1023 chars'))
+ try:
+ from nbxmpp.stringprepare import nameprep
+ server = nameprep.prepare(server)
+ except UnicodeError:
+ raise InvalidFormat(_('Invalid character in hostname.'))
+ else:
+ raise InvalidFormat(_('Server address required.'))
+
if user is not None:
if len(user) < 1 or len(user) > 1023:
raise InvalidFormat(_('Username must be between 1 and 1023 chars'))
@@ -184,17 +213,6 @@ def prep(user, server, resource):
else:
user = None
- if server is not None:
- if len(server) < 1 or len(server) > 1023:
- raise InvalidFormat(_('Server must be between 1 and 1023 chars'))
- try:
- from nbxmpp.stringprepare import nameprep
- server = nameprep.prepare(server)
- except UnicodeError:
- raise InvalidFormat(_('Invalid character in hostname.'))
- else:
- raise InvalidFormat(_('Server address required.'))
-
if resource is not None:
if len(resource) < 1 or len(resource) > 1023:
raise InvalidFormat(_('Resource must be between 1 and 1023 chars'))
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/49a78ae8ed999ee8866ea570746b9c1b61…