File tree Expand file tree Collapse file tree
eg005_create_new_clickwrap_version
eg007_clickwrap_responses Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -48,18 +48,18 @@ def worker(args):
4848 document_display = "document"
4949 )
5050
51- # read file from a local directory
51+ # Read file from a local directory
5252 # The reads could raise an exception if the file is not available!
5353 with open (path .join (demo_docs_path , DS_CONFIG ["doc_terms_pdf" ]),
5454 "rb" ) as file :
5555 doc_docx_bytes = file .read ()
5656 doc_b64 = base64 .b64encode (doc_docx_bytes ).decode ("ascii" )
5757
5858 # Step 3. Create a document model.
59- document = Document ( # create the DocuSign document object
59+ document = Document ( # Create the DocuSign document object
6060 document_base64 = doc_b64 ,
61- document_name = "Terms of Service" , # can be different from actual file name
62- file_extension = "pdf" , # many different document types are accepted
61+ document_name = "Terms of Service" , # Can be different from actual file name
62+ file_extension = "pdf" , # Many different document types are accepted
6363 order = 0
6464 )
6565
Original file line number Diff line number Diff line change 1111from app .ds_config import DS_CONFIG
1212from app .error_handlers import process_error
1313
14- eg = "eg001" # reference (and url ) for this example
14+ eg = "eg001" # Reference (and URL ) for this example
1515eg001 = Blueprint ("eg001" , __name__ )
1616
1717
@@ -37,7 +37,7 @@ def create_clickwrap():
3737 except ApiException as err :
3838 return process_error (err )
3939
40- # Save for use by other examples which need an clickwrap params .
40+ # Save for use by other examples which need a clickwrap parameter .
4141 session ["clickwrap_id" ] = clickwrap_id
4242 session ["clickwrap_name" ] = clickwrap_name
4343 session ["clickwrap_is_active" ] = False
Original file line number Diff line number Diff line change 1111from app .ds_config import DS_CONFIG
1212from app .error_handlers import process_error
1313
14- eg = "eg002" # reference (and url ) for this example
14+ eg = "eg002" # Reference (and URL ) for this example
1515eg002 = Blueprint ("eg002" , __name__ )
1616
1717
Original file line number Diff line number Diff line change 88from app .docusign import authenticate
99from app .ds_config import DS_CONFIG
1010
11- eg = "eg003" # reference (and url ) for this example
11+ eg = "eg003" # Reference (and URL ) for this example
1212eg003 = Blueprint ("eg003" , __name__ )
1313
1414
Original file line number Diff line number Diff line change 1- """Example 004: Embeding a clickwrap"""
1+ """Example 004: Embedding a clickwrap"""
22
33from os import path
44
88from app .docusign import authenticate
99from app .ds_config import DS_CONFIG
1010
11- eg = "eg004" # reference (and url ) for this example
11+ eg = "eg004" # Reference (and URL ) for this example
1212eg004 = Blueprint ("eg004" , __name__ )
1313
1414
@@ -26,7 +26,7 @@ def embed_clickwrap():
2626 # 2. Render template
2727 return render_template (
2828 "eg004_embed_clickwrap.html" ,
29- title = "Embeding a clickwrap" ,
29+ title = "Embedding a clickwrap" ,
3030 account_id = args .get ('account_id' ),
3131 client_user_id = DS_CONFIG .get ('signer_email' ),
3232 clickwrap_id = args .get ('clickwrap_id' ),
Original file line number Diff line number Diff line change @@ -49,18 +49,18 @@ def worker(args):
4949 send_to_email = False
5050 )
5151
52- # read file from a local directory
52+ # Read file from a local directory
5353 # The reads could raise an exception if the file is not available!
5454 with open (path .join (demo_docs_path , DS_CONFIG ["doc_terms_pdf" ]),
5555 "rb" ) as file :
5656 doc_docx_bytes = file .read ()
5757 doc_b64 = base64 .b64encode (doc_docx_bytes ).decode ("ascii" )
5858
5959 # Step 3. Create a document model.
60- document = Document ( # create the DocuSign document object
60+ document = Document ( # Create the DocuSign document object
6161 document_base64 = doc_b64 ,
62- document_name = "Terms of Service" , # can be different from actual file name
63- file_extension = "pdf" , # many different document types are accepted
62+ document_name = "Terms of Service" , # Can be different from actual file name
63+ file_extension = "pdf" , # Many different document types are accepted
6464 order = 0
6565 )
6666
Original file line number Diff line number Diff line change 1111from app .ds_config import DS_CONFIG
1212from app .error_handlers import process_error
1313
14- eg = "eg005" # reference (and url ) for this example
14+ eg = "eg005" # Reference (and URL ) for this example
1515eg005 = Blueprint ("eg005" , __name__ )
1616
1717
Original file line number Diff line number Diff line change 1111from app .ds_config import DS_CONFIG
1212from app .error_handlers import process_error
1313
14- eg = "eg006" # reference (and url ) for this example
14+ eg = "eg006" # Reference (and URL ) for this example
1515eg006 = Blueprint ("eg006" , __name__ )
1616
1717
@@ -45,7 +45,7 @@ def clickwrap_list():
4545@eg006 .route ("/eg006" , methods = ["GET" ])
4646@authenticate (eg = eg )
4747def get_view ():
48- """responds with the form for the example"""
48+ """Responds with the form for the example"""
4949 return render_template (
5050 "eg006_list_clickwraps.html" ,
5151 title = "Getting a list of clickwraps" ,
Original file line number Diff line number Diff line change 1111from app .ds_config import DS_CONFIG
1212from app .error_handlers import process_error
1313
14- eg = "eg007" # reference (and url ) for this example
14+ eg = "eg007" # Reference (and URL ) for this example
1515eg007 = Blueprint ("eg007" , __name__ )
1616
1717
@@ -45,7 +45,7 @@ def clickwrap_responses():
4545@eg007 .route ("/eg007" , methods = ["GET" ])
4646@authenticate (eg = eg )
4747def get_view ():
48- """responds with the form for the example"""
48+ """Responds with the form for the example"""
4949 return render_template (
5050 "eg007_clickwrap_responses.html" ,
5151 title = "Getting clickwrap responses" ,
Original file line number Diff line number Diff line change 11<!-- extend base layout --> {% extends "base.html" %} {% block content %}
2- < h4 > 4. Enbeding a clickwrap</ h4 >
2+ < h4 > 4. Embedding a clickwrap</ h4 >
33< p > This example demonstrates how to use DocuSign Click to embed an
44 existing clickwrap in your website.
55</ p >
You can’t perform that action at this time.
0 commit comments