Skip to content

Commit d2980ee

Browse files
committed
moving a function for codeDepot markers
1 parent c3a2bc8 commit d2980ee

File tree

1 file changed

+34
-34
lines changed

1 file changed

+34
-34
lines changed

app/eSignature/examples/eg011_embedded_sending.py

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,40 @@ def create_sender_view(cls, args, envelope_id):
7575
url = sender_view.url
7676

7777
return url
78+
79+
@classmethod
80+
def make_envelope_view_request(cls, args):
81+
view_request = EnvelopeViewRequest(
82+
return_url=args["ds_return_url"],
83+
view_access="envelope",
84+
settings=EnvelopeViewSettings(
85+
starting_screen=args["starting_view"],
86+
send_button_action="send",
87+
show_back_button="false",
88+
back_button_action="previousPage",
89+
show_header_actions="false",
90+
show_discard_action="false",
91+
lock_token="",
92+
recipient_settings=EnvelopeViewRecipientSettings(
93+
show_edit_recipients="false",
94+
show_contacts_list="false"
95+
),
96+
document_settings=EnvelopeViewDocumentSettings(
97+
show_edit_documents="false",
98+
show_edit_document_visibility="false",
99+
show_edit_pages="false"
100+
),
101+
tagger_settings=EnvelopeViewTaggerSettings(
102+
palette_sections="default",
103+
palette_default="custom"
104+
),
105+
template_settings=EnvelopeViewTemplateSettings(
106+
show_matching_templates_prompt="true"
107+
)
108+
)
109+
)
110+
111+
return view_request
78112
#ds-snippet-end:eSign11Step3
79113

80114
@classmethod
@@ -199,40 +233,6 @@ def make_envelope(cls, args, doc_docx_path, doc_pdf_path):
199233
env.status = args["status"]
200234

201235
return env
202-
203-
@classmethod
204-
def make_envelope_view_request(cls, args):
205-
view_request = EnvelopeViewRequest(
206-
return_url=args["ds_return_url"],
207-
view_access="envelope",
208-
settings=EnvelopeViewSettings(
209-
starting_screen=args["starting_view"],
210-
send_button_action="send",
211-
show_back_button="false",
212-
back_button_action="previousPage",
213-
show_header_actions="false",
214-
show_discard_action="false",
215-
lock_token="",
216-
recipient_settings=EnvelopeViewRecipientSettings(
217-
show_edit_recipients="false",
218-
show_contacts_list="false"
219-
),
220-
document_settings=EnvelopeViewDocumentSettings(
221-
show_edit_documents="false",
222-
show_edit_document_visibility="false",
223-
show_edit_pages="false"
224-
),
225-
tagger_settings=EnvelopeViewTaggerSettings(
226-
palette_sections="default",
227-
palette_default="custom"
228-
),
229-
template_settings=EnvelopeViewTemplateSettings(
230-
show_matching_templates_prompt="true"
231-
)
232-
)
233-
)
234-
235-
return view_request
236236

237237
@classmethod
238238
def create_document1(cls, args):

0 commit comments

Comments
 (0)