diff options
author | Lucas Hoffmann <l-m-h@web.de> | 2016-03-11 12:37:37 +0100 |
---|---|---|
committer | Patrick Totzke <patricktotzke@gmail.com> | 2016-03-11 11:52:38 +0000 |
commit | bda3aa99c797d609c185642fb767272e9bf884c1 (patch) | |
tree | 3a67d7540d0b05056080f4c6ad8b595216b6d37c /alot/commands/utils.py | |
parent | af047f128951545af135c56d8f87ef0a924fc0ab (diff) |
Add and update several docstrings.
Diffstat (limited to 'alot/commands/utils.py')
-rw-r--r-- | alot/commands/utils.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/alot/commands/utils.py b/alot/commands/utils.py index a6290671..5ac8a74c 100644 --- a/alot/commands/utils.py +++ b/alot/commands/utils.py @@ -9,6 +9,20 @@ from alot import crypto @inlineCallbacks def get_keys(ui, encrypt_keyids, block_error=False): + """Get several keys from the GPG keyring. The keys are selected by keyid + and are checked if they can be used for encryption. + + :param ui: the main user interface object + :type ui: alot.ui.UI + :param encrypt_keyids: the key ids of the keys to get + :type encrypt_keyids: list(str) + :param block_error: wether error messages for the user should expire + automatically or block the ui + :type block_error: bool + :returns: the available keys indexed by their key hash + :rtype: dict(str->gpgme.Key) + + """ keys = {} for keyid in encrypt_keyids: try: |