Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim-plugins.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/pgp
diff options
context:
space:
mode:
authorwurstsalat <mailtrash@posteo.de>2020-09-12 12:45:27 +0300
committerwurstsalat <mailtrash@posteo.de>2020-09-12 12:45:27 +0300
commit129afcddad8aa90699e80c32c18403685540aba4 (patch)
tree262612e5f287232ccfb88ae660a18b209f2fa053 /pgp
parent384cdfce8ad41f49bed4c8cee4cdfe948ef60355 (diff)
Adapt to upstream app.settings changes
Diffstat (limited to 'pgp')
-rw-r--r--pgp/backend/store.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/pgp/backend/store.py b/pgp/backend/store.py
index 22b195b..822f53c 100644
--- a/pgp/backend/store.py
+++ b/pgp/backend/store.py
@@ -76,8 +76,8 @@ class KeyStore:
def _migrate_v1_store(self):
keys = {}
- attached_keys = app.config.get_per(
- 'accounts', self._account, 'attached_gpg_keys')
+ attached_keys = app.settings.get_account_setting(
+ self._account, 'attached_gpg_keys')
if not attached_keys:
return
attached_keys = attached_keys.split()
@@ -88,13 +88,14 @@ class KeyStore:
for jid, key_id in keys.items():
self._set_contact_key_data_nosync(jid, (key_id, ''))
- own_key_id = app.config.get_per('accounts', self._account, 'keyid')
- own_key_user = app.config.get_per('accounts', self._account, 'keyname')
+ own_key_id = app.settings.get_account_setting(self._account, 'keyid')
+ own_key_user = app.settings.get_account_setting(
+ self._account, 'keyname')
if own_key_id:
self._set_own_key_data_nosync((own_key_id, own_key_user))
- attached_keys = app.config.set_per(
- 'accounts', self._account, 'attached_gpg_keys', '')
+ attached_keys = app.settings.set_account_setting(
+ self._account, 'attached_gpg_keys', '')
self._log.info('Migration from store v1 was successful')
def _migrate_v2_store(self):