diff options
author | Ruben Pollan <meskio@sindominio.net> | 2014-11-10 09:50:56 -0600 |
---|---|---|
committer | Ruben Pollan <meskio@sindominio.net> | 2014-11-10 13:41:28 -0600 |
commit | 22a16674ce6891de5ea0a9cbea38ddabc9dd6e06 (patch) | |
tree | 99c14f06cebcc3f8e55bbdb5b962771244cf919f /src/leap/keymanager/keys.py | |
parent | d1e0322d8c12dfb1511ad0895c5fc1e0271b8a30 (diff) |
Use type instead of tags to get docs in openpgp
For that that now the type is the class.__name__ instead of
str(class)
Diffstat (limited to 'src/leap/keymanager/keys.py')
-rw-r--r-- | src/leap/keymanager/keys.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/leap/keymanager/keys.py b/src/leap/keymanager/keys.py index 4952b9b3..5aeb7945 100644 --- a/src/leap/keymanager/keys.py +++ b/src/leap/keymanager/keys.py @@ -71,14 +71,14 @@ KEYMANAGER_KEY_TAG = 'keymanager-key' # TAGS_PRIVATE_INDEX = 'by-tags-private' -TAGS_ADDRESS_PRIVATE_INDEX = 'by-tags-address-private' +TYPE_ADDRESS_PRIVATE_INDEX = 'by-type-address-private' INDEXES = { TAGS_PRIVATE_INDEX: [ KEY_TAGS_KEY, 'bool(%s)' % KEY_PRIVATE_KEY, ], - TAGS_ADDRESS_PRIVATE_INDEX: [ - KEY_TAGS_KEY, + TYPE_ADDRESS_PRIVATE_INDEX: [ + KEY_TYPE_KEY, KEY_ADDRESS_KEY, 'bool(%s)' % KEY_PRIVATE_KEY, ] @@ -200,7 +200,7 @@ class EncryptionKey(object): return json.dumps({ KEY_ADDRESS_KEY: self.address, - KEY_TYPE_KEY: str(self.__class__), + KEY_TYPE_KEY: self.__class__.__name__, KEY_ID_KEY: self.key_id, KEY_FINGERPRINT_KEY: self.fingerprint, KEY_DATA_KEY: self.key_data, |