Philipp Hörist pushed to branch master at gajim / gajim
Commits:
b7671671 by lovetox at 2020-07-02T22:48:28+02:00
Interface: Store password with correct backend
On account creation use the passwords module to store the password correctly
- - - - -
73d1350b by lovetox at 2020-07-02T22:50:39+02:00
Remove comment
- - - - -
30bfc9eb by lovetox at 2020-07-02T23:08:39+02:00
CertStore: Add cert to cache on add_certificate()
Otherwise the cert is only available after a restart
Fixes #10160
- - - - -
2 changed files:
- gajim/common/cert_store.py
- gajim/gui_interface.py
Changes:
=====================================
gajim/common/cert_store.py
=====================================
@@ -62,6 +62,7 @@ class CertificateStore:
def add_certificate(self, certificate):
log.info('Add certificate to trust store')
+ self._certs.append(certificate)
pem = certificate.props.certificate_pem
path = self._get_random_path()
write_file_async(path,
=====================================
gajim/gui_interface.py
=====================================
@@ -1521,7 +1521,6 @@ class Interface:
'%s@%s' % (username, domain))
config['hostname'] = domain
config['savepass'] = True
- config['password'] = password
config['anonymous_auth'] = anonymous
config['autoconnect'] = True
config['sync_with_global_status'] = True
@@ -1542,10 +1541,14 @@ class Interface:
for opt in config:
app.config.set_per('accounts', account, opt, config[opt])
+ # Password module depends on existing config
+ passwords.save_password(account, password)
+
app.css_config.refresh()
- # refresh accounts window
+
# Action must be added before account window is updated
app.app.add_account_actions(account)
+
window = get_app_window('AccountsWindow')
if window is not None:
window.add_account(account)
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/compare/3e1dcf0178bdd4fc1683e3287d2b8cf…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/compare/3e1dcf0178bdd4fc1683e3287d2b8cf…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
3e1dcf01 by lovetox at 2020-07-01T20:04:49+02:00
MamPreferences: Correctly display preference state for JID
- - - - -
1 changed file:
- gajim/gtk/mam_preferences.py
Changes:
=====================================
gajim/gtk/mam_preferences.py
=====================================
@@ -78,10 +78,10 @@ class MamPreferences(Gtk.ApplicationWindow, EventHelper):
self._ui.default_combo.set_active_id(result.default)
self._ui.preferences_store.clear()
for jid in result.always:
- self._ui.preferences_store.append((str(jid), 'Always'))
+ self._ui.preferences_store.append((str(jid), True))
for jid in result.never:
- self._ui.preferences_store.append((str(jid), 'Never'))
+ self._ui.preferences_store.append((str(jid), False))
@ensure_not_destroyed
def _mam_prefs_saved(self, result):
@@ -137,8 +137,8 @@ class MamPreferences(Gtk.ApplicationWindow, EventHelper):
never = []
default = self._ui.default_combo.get_active_id()
for item in self._ui.preferences_store:
- jid, type_ = item
- if type_ == 'Always':
+ jid, archive = item
+ if archive:
always.append(jid)
else:
never.append(jid)
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/3e1dcf0178bdd4fc1683e3287d2b8cf9…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/3e1dcf0178bdd4fc1683e3287d2b8cf9…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
c057c605 by lovetox at 2020-06-30T20:05:26+02:00
PluginManager: Load plugins on Windows correctly
On Windows we ship compiled files
- - - - -
1 changed file:
- gajim/plugins/pluginmanager.py
Changes:
=====================================
gajim/plugins/pluginmanager.py
=====================================
@@ -130,11 +130,15 @@ class Plugin:
path=path)
def load_module(self):
- moduel_path = self.path / '__init__.py'
+ module_path = self.path / '__init__.py'
+ if not module_path.exists():
+ # On Windows we only ship compiled files
+ module_path = self.path/ '__init__.pyc'
+
module_name = self.path.stem
try:
- spec = spec_from_file_location(module_name, moduel_path)
+ spec = spec_from_file_location(module_name, module_path)
if spec is None:
return None
module = module_from_spec(spec)
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/c057c605e3a0a7831e6870bf6bc52655…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/c057c605e3a0a7831e6870bf6bc52655…
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:
dafb82e8 by lovetox at 2020-06-29T20:26:39+02:00
Client: Determine allowed type and protocol correctly
Returns now the type and protocol set via custom_host instead of falling back to the allowed default type and protocol
- - - - -
1 changed file:
- nbxmpp/client.py
Changes:
=====================================
nbxmpp/client.py
=====================================
@@ -244,6 +244,8 @@ class Client(Observable):
@property
def connection_types(self):
+ if self._custom_host is not None:
+ return [self._custom_host[2]]
return list(self._allowed_con_types or [ConnectionType.DIRECT_TLS,
ConnectionType.START_TLS])
@@ -263,6 +265,8 @@ class Client(Observable):
@property
def protocols(self):
+ if self._custom_host is not None:
+ return [self._custom_host[1]]
return list(self._allowed_protocols or [ConnectionProtocol.TCP,
ConnectionProtocol.WEBSOCKET])
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/-/commit/dafb82e82694cace846fb114…
--
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/-/commit/dafb82e82694cace846fb114…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
4010161a by lovetox at 2020-06-28T23:37:17+02:00
Plugins: Don't fail if plugins dir does not exist
- - - - -
1 changed file:
- gajim/plugins/helpers.py
Changes:
=====================================
gajim/plugins/helpers.py
=====================================
@@ -127,5 +127,7 @@ def get_builder(file_name: str, widgets: List[str] = None) -> Builder:
def is_shipped_plugin(path):
base = Path(configpaths.get('PLUGINS_BASE'))
+ if not base.exists():
+ return False
plugin_parent = Path(path).parent
return base.samefile(plugin_parent)
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/4010161a203a6aa0f60cbea246539063…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/4010161a203a6aa0f60cbea246539063…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
9ee85427 by wurstsalat at 2020-06-28T22:04:27+02:00
Encryption menu: Make 'disabled' item translatable
- - - - -
1 changed file:
- gajim/gui_menu_builder.py
Changes:
=====================================
gajim/gui_menu_builder.py
=====================================
@@ -749,7 +749,8 @@ def build_accounts_menu():
def get_encryption_menu(control_id, control_type, zeroconf=False):
menu = Gio.Menu()
menu.append(
- 'Disabled', 'win.set-encryption-{}::{}'.format(control_id, 'disabled'))
+ _('Disabled'),
+ 'win.set-encryption-{}::{}'.format(control_id, 'disabled'))
for name, plugin in app.plugin_manager.encryption_plugins.items():
if control_type.is_groupchat:
if not hasattr(plugin, 'allow_groupchat'):
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/9ee8542755216985b2a89c18f7e82fe3…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/9ee8542755216985b2a89c18f7e82fe3…
You're receiving this email because of your account on dev.gajim.org.