Philipp Hörist pushed to branch master at gajim / gajim
Commits:
c0c16dbf by Philipp Hörist at 2018-04-21T21:28:19+02:00
Dont change path names because plugins use them
- - - - -
2 changed files:
- gajim/common/configpaths.py
- gajim/common/helpers.py
Changes:
=====================================
gajim/common/configpaths.py
=====================================
--- a/gajim/common/configpaths.py
+++ b/gajim/common/configpaths.py
@@ -134,9 +134,9 @@ class ConfigPaths:
user_dir_paths = [
('TMP', tempfile.gettempdir()),
- ('CONFIG_ROOT', self.config_root),
- ('CACHE_ROOT', self.cache_root),
- ('DATA_ROOT', self.data_root),
+ ('MY_CONFIG', self.config_root),
+ ('MY_CACHE', self.cache_root),
+ ('MY_DATA', self.data_root),
]
for path in user_dir_paths:
=====================================
gajim/common/helpers.py
=====================================
--- a/gajim/common/helpers.py
+++ b/gajim/common/helpers.py
@@ -863,7 +863,7 @@ def check_soundfile_path(file_, dirs=None):
:return the path to file or None if it doesn't exists.
"""
if dirs is None:
- dirs = [app.configpaths.get('DATA_ROOT'),
+ dirs = [app.configpaths.get('MY_DATA'),
app.DATA_DIR]
if not file_:
@@ -891,7 +891,7 @@ def strip_soundfile_path(file_, dirs=None, abs=True):
return None
if dirs is None:
- dirs = [app.configpaths.get('DATA_ROOT'),
+ dirs = [app.configpaths.get('MY_DATA'),
app.DATA_DIR]
name = os.path.basename(file_)
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/c0c16dbf94ee30d76cf076c2f9c26f34eb…
---
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/c0c16dbf94ee30d76cf076c2f9c26f34eb…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
dadc85bb by Philipp Hörist at 2018-04-19T22:22:04+02:00
Fix tests
- - - - -
1 changed file:
- gajim/common/contacts.py
Changes:
=====================================
gajim/common/contacts.py
=====================================
--- a/gajim/common/contacts.py
+++ b/gajim/common/contacts.py
@@ -29,7 +29,6 @@
##
try:
- from gajim.common import app
from gajim.common import caps_cache
from gajim.common.account import Account
from gajim import common
@@ -523,9 +522,6 @@ class Contacts():
def get_groupchat_contact(self, jid):
if jid in self._contacts:
contacts = self._contacts[jid]
- if len(contacts) > 1:
- app.log('contacts').warning(
- 'Groupchat Contact found more than once')
if contacts[0].is_groupchat():
return contacts[0]
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/dadc85bb522544c35d445c811d1e79036f…
---
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/dadc85bb522544c35d445c811d1e79036f…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
70a7000d by Philipp Hörist at 2018-04-19T17:59:17+02:00
Dont be lenient with namespace
- - - - -
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
@@ -800,7 +800,7 @@ PresenceHelperEvent):
xtags = self.stanza.getTags('x')
for x in xtags:
namespace = x.getNamespace()
- if namespace.startswith(nbxmpp.NS_MUC):
+ if namespace == nbxmpp.NS_MUC_USER:
self.is_gc = True
elif namespace == nbxmpp.NS_SIGNED:
sig_tag = x
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/70a7000d440281e23d827170809c06f3d7…
---
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/70a7000d440281e23d827170809c06f3d7…
You're receiving this email because of your account on dev.gajim.org.