Skip to content

Commit 743fc1d

Browse files
committed
eg 9 - 12
1 parent 6bd60da commit 743fc1d

8 files changed

Lines changed: 556 additions & 650 deletions

app/eg009_use_template.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ def create_controller():
3838
signer_name = pattern.sub('', request.form.get('signer_name'))
3939
cc_email = pattern.sub('', request.form.get('cc_email'))
4040
cc_name = pattern.sub('', request.form.get('cc_name'))
41+
template_id = session['template_id']
4142
envelope_args = {
4243
'signer_email': signer_email,
4344
'signer_name': signer_name,
@@ -74,7 +75,7 @@ def create_controller():
7475
message=f"""The envelope has been created and sent!<br/>
7576
Envelope ID {results["envelope_id"]}."""
7677
)
77-
elsif not token_ok:
78+
elif not token_ok:
7879
flash('Sorry, you need to re-authenticate.')
7980
# We could store the parameters of the requested operation
8081
# so it could be restarted automatically.
@@ -127,16 +128,16 @@ def make_envelope(args):
127128

128129
# create the envelope definition
129130
envelope_definition = EnvelopeDefinition(
130-
status = "sent" # requests that the envelope be created and sent.
131-
templateId = args['template_id']
131+
status = "sent", # requests that the envelope be created and sent.
132+
template_id = args['template_id']
132133
)
133134
# Create template role elements to connect the signer and cc recipients
134135
# to the template
135136
signer = TemplateRole(
136137
email = args['signer_email'],
137138
name = args['signer_name'],
138139
role_name = 'signer')
139-
// Create a cc template role.
140+
# Create a cc template role.
140141
cc = TemplateRole(
141142
email = args['cc_email'],
142143
name = args['cc_name'],

0 commit comments

Comments
 (0)