Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass message_to_sender when sending a test contract #169

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions postgresqleu/confsponsor/backendviews.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,10 @@ def send_test_sponsorship_contract(request, urlname, contractid):
contract.fieldjson,
2, # expires_in
test=True,
message_to_sender="TEST The contract sponsorship of {} has been signed by {}. It is now time for the organizers to countersign, but remember this is a test only".format
(
conference.conferencename, form.cleaned_data['recipientname']
)
)
if error:
form.add_error(None, 'Failed to send test contract: {}'.format(error))
Expand Down
3 changes: 2 additions & 1 deletion postgresqleu/digisign/implementations/signwell.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ class Signwell(BaseProvider):
def description_text(self, signeremail):
return 'Signing instructions will be delivered to {}. If necessary, you will be able to re-route the signing from the provider interface to somebody else in your organisation once the process is started.'.format(signeremail)

def send_contract(self, sender_name, sender_email, recipient_name, recipient_email, pdf, pdfname, subject, message, metadata, fielddata, expires_in, test, message_to_sender=None):
def send_contract(self, sender_name, sender_email, recipient_name, recipient_email, pdf, pdfname, subject, message, metadata, fielddata, expires_in, test,
message_to_sender="The contract for sponsorship has been signed by the sponsor. It is now time for the organizers to countersign."):
if self.provider.config.get('forcetest', False):
# Override test to be true if configured for enforcement.
test = True
Expand Down