Philipp Hörist pushed to branch master at gajim / python-nbxmpp
Commits:
d713ce90 by Philipp Hörist at 2018-07-20T23:49:26+02:00
Load files from FreeBSD specific location
Fixes #53
- - - - -
1 changed file:
- nbxmpp/tls_nb.py
Changes:
=====================================
nbxmpp/tls_nb.py
=====================================
--- a/nbxmpp/tls_nb.py
+++ b/nbxmpp/tls_nb.py
@@ -448,12 +448,15 @@ class NonBlockingTLS(PlugIn):
store = tcpsock._sslContext.get_cert_store()
self._load_cert_file(self.cacerts, store)
self._load_cert_file(self.mycerts, store)
- if os.path.isdir('/etc/ssl/certs'):
- for f in os.listdir('/etc/ssl/certs'):
- # We don't logg because there is a lot a duplicated certs in this
- # folder
- self._load_cert_file(os.path.join('/etc/ssl/certs', f), store,
- logg=False)
+ paths = ['/etc/ssl/certs',
+ '/etc/ssl'] # FreeBSD uses this
+ for path in paths:
+ if not os.path.isdir(path):
+ continue
+ for f in os.listdir(path):
+ # We don't logg because there is a lot a duplicated certs
+ # in this folder
+ self._load_cert_file(os.path.join(path, f), store, logg=False)
tcpsock._sslObj = OpenSSL.SSL.Connection(tcpsock._sslContext,
tcpsock._sock)
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/commit/d713ce9059de350ce41f6d41f0…
--
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/commit/d713ce9059de350ce41f6d41f0…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
3a3b5aff by Philipp Hörist at 2018-07-18T00:15:46+02:00
Move some dialogs into gtk module
- - - - -
25 changed files:
- gajim/accounts_window.py
- gajim/adhoc_commands.py
- gajim/app_actions.py
- gajim/chat_control.py
- gajim/chat_control_base.py
- gajim/common/connection_handlers_events.py
- gajim/config.py
- gajim/conversation_textview.py
- gajim/data/style/gajim.css
- gajim/dialog_messages.py
- gajim/dialogs.py
- gajim/disco.py
- gajim/filetransfers_window.py
- gajim/gajim_themes_window.py
- gajim/groupchat_control.py
- gajim/gtk/__init__.py
- + gajim/gtk/about.py
- + gajim/gtk/add_contact.py
- + gajim/gtk/dialogs.py
- gajim/gtk/history_sync.py
- + gajim/gtk/join_groupchat.py
- gajim/gtk/mam_preferences.py
- + gajim/gtk/privacy_list.py
- gajim/server_info.py → gajim/gtk/server_info.py
- + gajim/gtk/single_message.py
The diff was not included because it is too large.
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/3a3b5aff201a224770227086f823d92bf2…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/3a3b5aff201a224770227086f823d92bf2…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
6c70b63e by Philipp Hörist at 2018-07-17T00:13:12+02:00
Fix parsing jid from roster set event
- - - - -
1 changed file:
- gajim/common/connection_handlers_events.py
Changes:
=====================================
gajim/common/connection_handlers_events.py
=====================================
--- a/gajim/common/connection_handlers_events.py
+++ b/gajim/common/connection_handlers_events.py
@@ -230,9 +230,9 @@ class RosterSetReceivedEvent(nec.NetworkIncomingEvent):
base_network_events = []
def generate(self):
- frm = helpers.get_jid_from_iq(self.stanza)
- our_jid = app.get_jid_from_account(self.conn.name)
- if frm and frm != our_jid and frm != app.get_server_from_jid(our_jid):
+ frm = self.stanza.getFrom()
+ our_jid = self.conn.get_own_jid()
+ if frm is not None and not frm.bareMatch(our_jid):
return
self.version = self.stanza.getTagAttr('query', 'ver')
self.items = {}
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/6c70b63e34c6bb49365d8df707e9ab8d05…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/6c70b63e34c6bb49365d8df707e9ab8d05…
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:
7bccbcba by Philipp Hörist at 2018-07-15T23:57:01+02:00
Add more debug output for handlers
- - - - -
1 changed file:
- nbxmpp/dispatcher_nb.py
Changes:
=====================================
nbxmpp/dispatcher_nb.py
=====================================
--- a/nbxmpp/dispatcher_nb.py
+++ b/nbxmpp/dispatcher_nb.py
@@ -437,21 +437,21 @@ class XMPPDispatcher(PlugIn):
# log.info('in dispatch, getting ns for %s, and the ns is %s'
# % (stanza, xmlns))
if xmlns not in self.handlers:
- log.warning("Unknown namespace: " + xmlns)
+ log.warning('Unknown namespace: %s', xmlns)
xmlns = 'unknown'
# features stanza has been handled before
if name not in self.handlers[xmlns]:
if name != 'features':
- log.warning("Unknown stanza: " + name)
+ log.warning('Unknown stanza: %s', stanza)
else:
- log.debug("Got %s/%s stanza" % (xmlns, name))
- name='unknown'
+ log.debug('Got %s/%s stanza' % (xmlns, name))
+ name = 'unknown'
else:
- log.debug("Got %s/%s stanza" % (xmlns, name))
+ log.debug('Got %s/%s stanza' % (xmlns, name))
if stanza.__class__.__name__ == 'Node':
# FIXME: this cannot work
- stanza=self.handlers[xmlns][name][type](node=stanza)
+ stanza = self.handlers[xmlns][name][type](node=stanza)
typ = stanza.getType()
if not typ:
@@ -459,6 +459,8 @@ class XMPPDispatcher(PlugIn):
stanza.props = stanza.getProperties()
ID = stanza.getID()
+ log.debug('type: %s, properties: %s', typ, stanza.props)
+
# If server supports stream management
if self.sm and self.sm.enabled and (stanza.getName() != 'r' and
stanza.getName() != 'a' and stanza.getName() != 'enabled' and
@@ -498,6 +500,7 @@ class XMPPDispatcher(PlugIn):
for handler in chain:
if user or handler['system']:
try:
+ log.debug('Call handler: %s', handler['func'])
handler['func'](session, stanza)
except Exception as typ:
if typ.__class__.__name__ != 'NodeProcessed':
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/commit/7bccbcbac5b5cb9f1f124cc284…
--
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/commit/7bccbcbac5b5cb9f1f124cc284…
You're receiving this email because of your account on dev.gajim.org.