Skip to content

Commit e4cbd35

Browse files
committed
Corrected step comments in in person signer and doc vis
1 parent dcc131f commit e4cbd35

2 files changed

Lines changed: 24 additions & 7 deletions

File tree

app/eSignature/examples/eg039_in_person_signer.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ def get_args():
3333
return args
3434

3535
@classmethod
36+
# Step 3 start
3637
def worker(cls, args):
3738
"""
3839
1. Create the envelope request object
@@ -52,7 +53,9 @@ def worker(cls, args):
5253
results = envelope_api.create_envelope(account_id=args["account_id"], envelope_definition=envelope_definition)
5354

5455
envelope_id = results.envelope_id
56+
# Step 3 end
5557

58+
# Step 4 start
5659
# 3. Create the Recipient View request object
5760
recipient_view_request = RecipientViewRequest(
5861
authentication_method=authentication_method,
@@ -61,17 +64,23 @@ def worker(cls, args):
6164
user_name=envelope_args["host_name"],
6265
email=envelope_args["host_email"]
6366
)
67+
# Step 4 end
68+
69+
# Step 5 start
6470
# 4. Obtain the recipient_view_url for the embedded signing session
6571
# Exceptions will be caught by the calling function
6672
results = envelope_api.create_recipient_view(
6773
account_id=args["account_id"],
6874
envelope_id=envelope_id,
6975
recipient_view_request=recipient_view_request
7076
)
77+
78+
# Step 5 end
7179

7280
return {"envelope_id": envelope_id, "redirect_url": results.url}
7381

7482
@classmethod
83+
# Step 2 start
7584
def make_envelope(cls, args):
7685
"""
7786
Creates envelope
@@ -130,3 +139,6 @@ def make_envelope(cls, args):
130139
)
131140

132141
return envelope_definition
142+
# Step 2 end
143+
144+
# End

app/eSignature/examples/eg040_document_visibility.py

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ def get_args():
4848
}
4949
return args
5050

51-
# Step 3 start
5251
@classmethod
5352
def worker(cls, args, doc_docx_path, doc_pdf_path):
5453
"""
@@ -58,20 +57,23 @@ def worker(cls, args, doc_docx_path, doc_pdf_path):
5857
envelope_args = args["envelope_args"]
5958
# 1. Create the envelope request object
6059
envelope_definition = cls.make_envelope(envelope_args, doc_docx_path, doc_pdf_path)
61-
60+
61+
# Step 2 start
6262
# 2. call Envelopes::create API method
6363
# Exceptions will be caught by the calling function
6464
api_client = create_api_client(base_path=args["base_path"], access_token=args["access_token"])
65+
# Step 2 end
6566

67+
# Step 4 start
6668
envelope_api = EnvelopesApi(api_client)
6769
results = envelope_api.create_envelope(account_id=args["account_id"], envelope_definition=envelope_definition)
68-
70+
# Step 4 end
71+
6972
envelope_id = results.envelope_id
7073

7174
return {"envelope_id": envelope_id}
72-
# Step 3 end
73-
74-
# Step 2 start
75+
76+
# Step 3 start
7577
@classmethod
7678
def make_envelope(cls, args, doc_docx_path, doc_pdf_path):
7779
"""
@@ -181,6 +183,7 @@ def make_envelope(cls, args, doc_docx_path, doc_pdf_path):
181183
env.status = args["status"]
182184

183185
return env
186+
# Step 3 end
184187

185188
@classmethod
186189
def create_document1(cls, args):
@@ -212,4 +215,6 @@ def create_document1(cls, args):
212215
<h3 style="margin-top:3em;">Agreed: <span style="color:white;">**signature_1**/</span></h3>
213216
</body>
214217
</html>
215-
"""
218+
"""
219+
220+
# End

0 commit comments

Comments
 (0)