summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/backend
diff options
context:
space:
mode:
authorRuben Pollan <meskio@sindominio.net>2016-04-25 20:24:04 -0300
committerRuben Pollan <meskio@sindominio.net>2016-04-25 20:24:04 -0300
commit5a1dd49debdcd9a1ce0568217e9411d1e45a3cad (patch)
tree9489b6bd6133e26fcfbf9aca2aa0cbcadc55654d /src/leap/bitmask/backend
parentf47416804ad2f88ba27aa032e0d2fc1c9fd314c8 (diff)
[bug] represent keys correctly in preference window
Diffstat (limited to 'src/leap/bitmask/backend')
-rw-r--r--src/leap/bitmask/backend/components.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/leap/bitmask/backend/components.py b/src/leap/bitmask/backend/components.py
index 3192e1c4..ba64fd65 100644
--- a/src/leap/bitmask/backend/components.py
+++ b/src/leap/bitmask/backend/components.py
@@ -994,14 +994,14 @@ class Keymanager(object):
d.addCallback(export)
d.addErrback(log_error)
+ @defer.inlineCallbacks
def list_keys(self):
"""
List all the keys stored in the local DB.
"""
- d = self._keymanager_proxy.get_all_keys()
- d.addCallback(
- lambda keys:
- self._signaler.signal(self._signaler.keymanager_keys_list, keys))
+ keys = yield self._keymanager_proxy.get_all_keys()
+ keydicts = [dict(key) for key in keys]
+ self._signaler.signal(self._signaler.keymanager_keys_list, keydicts)
def get_key_details(self, username):
"""
@@ -1009,7 +1009,7 @@ class Keymanager(object):
"""
def signal_details(public_key):
self._signaler.signal(self._signaler.keymanager_key_details,
- public_key.get_dict())
+ dict(public_key))
d = self._keymanager_proxy.get_key(username,
openpgp.OpenPGPKey)