diff options
author | Magnus Hagander | 2023-10-19 09:07:18 +0000 |
---|---|---|
committer | Magnus Hagander | 2023-10-19 09:07:18 +0000 |
commit | 28745b3b3ad3400a54e7c11ac6edca61d4f200d8 (patch) | |
tree | 1c6bb46739c6f5b4509926bbd4e48dd9685383b9 /postgresqleu/digisign | |
parent | b1c2914961f885bad0764384a5989ae3dcfd6bf6 (diff) |
Send notifications to conf organizers on signed digital contracts
When a digital contract is signed, notifications were only sent from
signwell to the actual party signing - not to the conference organizers.
So there was no way for them to know. With this change, also notify the
conference organiers on signing and counter-signing (counter-signing
only if automatic processing is n't enabled - if it is, the
notification is sent from there).
Diffstat (limited to 'postgresqleu/digisign')
-rw-r--r-- | postgresqleu/digisign/implementations/signwell.py | 2 | ||||
-rw-r--r-- | postgresqleu/digisign/util.py | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/postgresqleu/digisign/implementations/signwell.py b/postgresqleu/digisign/implementations/signwell.py index eb5798c6..6233bfb2 100644 --- a/postgresqleu/digisign/implementations/signwell.py +++ b/postgresqleu/digisign/implementations/signwell.py @@ -355,6 +355,8 @@ class Signwell(BaseProvider): dhandler.canceled() elif event == 'document_declined': dhandler.declined() + elif event == 'document_signed': + dhandler.signed(j['event']['related_signer']['name']) except Exception as e: DigisignLog( provider=self.provider, diff --git a/postgresqleu/digisign/util.py b/postgresqleu/digisign/util.py index 8dd55a33..ba84b1b3 100644 --- a/postgresqleu/digisign/util.py +++ b/postgresqleu/digisign/util.py @@ -29,3 +29,6 @@ class DigisignHandlerBase: def canceled(self): pass + + def signed(self, signedby): + pass |