Skip to content

Commit b41f57e

Browse files
committed
DEVDOCS-10165 eSign 40 cD mkrs
1 parent a94986a commit b41f57e

1 file changed

Lines changed: 10 additions & 14 deletions

File tree

app/eSignature/examples/eg040_document_visibility.py

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def get_args():
2424
"""Get request and session arguments"""
2525
# More data validation would be a good idea here
2626
# Strip anything other than characters listed
27-
# 1. Parse request arguments
27+
# Parse request arguments
2828
signer1_email = pattern.sub("", request.form.get("signer1_email"))
2929
signer1_name = pattern.sub("", request.form.get("signer1_name"))
3030
signer2_email = pattern.sub("", request.form.get("signer2_email"))
@@ -55,26 +55,24 @@ def worker(cls, args, doc_docx_path, doc_pdf_path):
5555
2. Send the envelope
5656
"""
5757
envelope_args = args["envelope_args"]
58-
# 1. Create the envelope request object
58+
# Create the envelope request object
5959
envelope_definition = cls.make_envelope(envelope_args, doc_docx_path, doc_pdf_path)
6060

61-
# 2. call Envelopes::create API method
61+
# Call Envelopes::create API method
6262
# Exceptions will be caught by the calling function
63-
# Step 2 start
63+
#ds-snippet-start:eSign40Step2
6464
api_client = create_api_client(base_path=args["base_path"], access_token=args["access_token"])
65-
# Step 2 end
65+
#ds-snippet-end:eSign40Step2
6666

67-
# Step 4 start
67+
#ds-snippet-start:eSign40Step4
6868
envelope_api = EnvelopesApi(api_client)
69-
results = envelope_api.create_envelope(account_id=args["account_id"], envelope_definition=envelope_definition)
70-
# Step 4 end
71-
69+
results = envelope_api.create_envelope(account_id=args["account_id"], envelope_definition=envelope_definition)
7270
envelope_id = results.envelope_id
73-
71+
#ds-snippet-end:eSign40Step4
7472
return {"envelope_id": envelope_id}
7573

7674
@classmethod
77-
# Step 3 start
75+
#ds-snippet-start:eSign40Step3
7876
def make_envelope(cls, args, doc_docx_path, doc_pdf_path):
7977
"""
8078
Creates envelope
@@ -214,6 +212,4 @@ def create_document1(cls, args):
214212
</body>
215213
</html>
216214
"""
217-
# Step 3 end
218-
219-
# End
215+
#ds-snippet-end:eSign40Step3

0 commit comments

Comments
 (0)