diff options
| author | J08nY | 2017-06-28 16:48:02 +0200 |
|---|---|---|
| committer | J08nY | 2017-06-28 16:48:02 +0200 |
| commit | 47eea2be6a86f81ba075df632305c1dfeecce50c (patch) | |
| tree | 737dbbfe7f4b1902ee0c8ebfc5f61e23ecfe70ee /src/mailman_pgp/styles/base.py | |
| parent | bc548f544bd8ae4c46d72a684e822b3eaa6cfafd (diff) | |
| download | mailman-pgp-47eea2be6a86f81ba075df632305c1dfeecce50c.tar.gz mailman-pgp-47eea2be6a86f81ba075df632305c1dfeecce50c.tar.zst mailman-pgp-47eea2be6a86f81ba075df632305c1dfeecce50c.zip | |
Diffstat (limited to 'src/mailman_pgp/styles/base.py')
| -rw-r--r-- | src/mailman_pgp/styles/base.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mailman_pgp/styles/base.py b/src/mailman_pgp/styles/base.py index dd8e76b..caa7775 100644 --- a/src/mailman_pgp/styles/base.py +++ b/src/mailman_pgp/styles/base.py @@ -29,12 +29,13 @@ class PGPStyle: """Creates the encrypted mailing list instance for the list it's applied to. """ + mailing_list.posting_chain = 'pgp-posting-chain' + pgp_list = PGPMailingList.query().filter_by( - list_id=mailing_list.list_id).first() + list_id=mailing_list.list_id).first() if pgp_list: return pgp_list = PGPMailingList(mailing_list) with transaction() as session: session.add(pgp_list) - mailing_list.posting_chain = 'pgp-posting-chain' |
