diff options
| author | J08nY | 2017-06-26 22:12:09 +0200 |
|---|---|---|
| committer | J08nY | 2017-06-26 22:12:09 +0200 |
| commit | bdb0ec76d9b7b9a7e6956af5fe15d05c4c73ada4 (patch) | |
| tree | fca178aa7abef2acb4dadf5262711cc8dcd5da55 /src/mailman_pgp/model/list.py | |
| parent | e506b790be863e58930aefb7473cd815a967a581 (diff) | |
| download | mailman-pgp-bdb0ec76d9b7b9a7e6956af5fe15d05c4c73ada4.tar.gz mailman-pgp-bdb0ec76d9b7b9a7e6956af5fe15d05c4c73ada4.tar.zst mailman-pgp-bdb0ec76d9b7b9a7e6956af5fe15d05c4c73ada4.zip | |
Diffstat (limited to 'src/mailman_pgp/model/list.py')
| -rw-r--r-- | src/mailman_pgp/model/list.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/mailman_pgp/model/list.py b/src/mailman_pgp/model/list.py index e1de7cc..8dc1ed8 100644 --- a/src/mailman_pgp/model/list.py +++ b/src/mailman_pgp/model/list.py @@ -78,12 +78,22 @@ class PGPMailingList(Base): @property def mlist(self): + """ + + :return: + :rtype: mailman.model.mailinglist.MailingList + """ if self._mlist is None: self._mlist = getUtility(IListManager).get_by_list_id(self.list_id) return self._mlist @property def key(self): + """ + + :return: + :rtype: pgpy.PGPKey + """ if self._key is None: # Check the file if exists(self.key_path) and isfile(self.key_path): @@ -99,11 +109,21 @@ class PGPMailingList(Base): @property def pubkey(self): + """ + + :return: + :rtype: pgpy.PGPKey + """ if self.key is None: return None return self.key.pubkey @property def key_path(self): + """ + + :return: + :rtype: str + """ return join(config.pgp.keydir_config['list_keydir'], self.list_id + '.asc') |
