Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion app/rooms/examples/eg001_create_room_with_data/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,6 @@ def get_view():
return render_template(
"eg001_create_room_with_data.html",
title="Creating a room with data",
source_file=path.basename(path.dirname(__file__)) + "/controller.py",
source_file=path.relpath(path.dirname(__file__), start='app') + "/controller.py",
source_url="https://github.com/docusign/code-examples-python/tree/master/app/" + path.relpath(path.dirname(__file__), start='app') + "/controller.py",
)
3 changes: 2 additions & 1 deletion app/rooms/examples/eg002_create_room_with_template/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ def get_view():
return render_template(
"eg002_create_room_with_template.html",
title="Creating a room with a template",
source_file=path.basename(path.dirname(__file__)) + "/controller.py",
source_file=path.relpath(path.dirname(__file__), start='app') + "/controller.py",
source_url="https://github.com/docusign/code-examples-python/tree/master/app/" + path.relpath(path.dirname(__file__), start='app') + "/controller.py",
templates=templates
)
3 changes: 2 additions & 1 deletion app/rooms/examples/eg003_export_data_from_room/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ def get_view():
return render_template(
"eg003_export_data_from_room.html",
title="Exporting data from a room",
source_file=path.basename(path.dirname(__file__)) + "/controller.py",
source_file=path.relpath(path.dirname(__file__), start='app') + "/controller.py",
source_url="https://github.com/docusign/code-examples-python/tree/master/app/" + path.relpath(path.dirname(__file__), start='app') + "/controller.py",
rooms=rooms,
)
3 changes: 2 additions & 1 deletion app/rooms/examples/eg004_add_forms_to_room/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ def get_view():
return render_template(
"eg004_add_forms_to_room.html",
title="Adding forms to a room",
source_file=path.basename(path.dirname(__file__)) + "/controller.py",
source_file=path.relpath(path.dirname(__file__), start='app') + "/controller.py",
source_url="https://github.com/docusign/code-examples-python/tree/master/app/" + path.relpath(path.dirname(__file__), start='app') + "/controller.py",
rooms=rooms,
forms=forms
)
3 changes: 2 additions & 1 deletion app/rooms/examples/eg005_get_rooms_with_filters/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ def get_view():
return render_template(
"eg005_get_rooms_with_filters.html",
title="Getting rooms with filters",
source_file=path.basename(path.dirname(__file__)) + "/controller.py",
source_file=path.relpath(path.dirname(__file__), start='app') + "/controller.py",
source_url="https://github.com/docusign/code-examples-python/tree/master/app/" + path.relpath(path.dirname(__file__), start='app') + "/controller.py",
rooms=rooms,
start=start_date.strftime("%Y-%m-%d"),
end=end_date.strftime("%Y-%m-%d")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ def get_view():
return render_template(
"eg006_create_external_form_fill_session.html",
title="Create an external form fill session",
source_file=path.basename(path.dirname(__file__)) + "/controller.py",
source_file=path.relpath(path.dirname(__file__), start='app') + "/controller.py",
source_url="https://github.com/docusign/code-examples-python/tree/master/app/" + path.relpath(path.dirname(__file__), start='app') + "/controller.py",
rooms=rooms,
)

Expand Down Expand Up @@ -93,7 +94,8 @@ def get_forms():
return render_template(
"eg006_create_external_form_fill_session.html",
title="Create an external form fill session",
source_file=path.basename(path.dirname(__file__)) + "/controller.py",
source_file=path.relpath(path.dirname(__file__), start='app') + "/controller.py",
source_url="https://github.com/docusign/code-examples-python/tree/master/app/" + path.relpath(path.dirname(__file__), start='app') + "/controller.py",
forms=forms,
room_id=args["room_id"],
room_name=room.name
Expand Down
3 changes: 2 additions & 1 deletion app/rooms/examples/eg007_create_form_group/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,6 @@ def get_view():
return render_template(
"eg007_create_form_group.html",
title="Creating a form group",
source_file=path.basename(path.dirname(__file__)) + "/controller.py"
source_file=path.relpath(path.dirname(__file__), start='app') + "/controller.py",
source_url="https://github.com/docusign/code-examples-python/tree/master/app/" + path.relpath(path.dirname(__file__), start='app') + "/controller.py",
)
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
from docusign_rooms.client.api_exception import ApiException
from flask import Blueprint, render_template, current_app

from os import path

from app.docusign import authenticate
from app.error_handlers import process_error
from .controller import Eg008Controller
Expand Down Expand Up @@ -63,5 +65,7 @@ def get_view():
return render_template(
"eg008_grant_office_access_to_form_group.html",
offices=offices,
form_groups=form_groups
form_groups=form_groups,
source_file=path.relpath(path.dirname(__file__), start='app') + "/controller.py",
source_url="https://github.com/docusign/code-examples-python/tree/master/app/" + path.relpath(path.dirname(__file__), start='app') + "/controller.py",
)
5 changes: 4 additions & 1 deletion app/rooms/examples/eg009_assign_form_to_form_group/views.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import json
from os import path

from docusign_rooms.client.api_exception import ApiException
from flask import Blueprint, render_template, current_app
Expand Down Expand Up @@ -73,5 +74,7 @@ def get_view():
return render_template(
"eg009_assign_form_to_form_group.html",
forms=forms,
form_groups=form_groups
form_groups=form_groups,
source_file=path.relpath(path.dirname(__file__), start='app') + "/controller.py",
source_url="https://github.com/docusign/code-examples-python/tree/master/app/" + path.relpath(path.dirname(__file__), start='app') + "/controller.py",
)
3 changes: 3 additions & 0 deletions app/rooms/templates/eg001_create_room_with_data.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ <h4>1. Creating a room with data</h4>
<a target ='_blank' href="https://developers.docusign.com/rooms-api/reference/Rooms/Rooms/CreateRoom">Rooms::CreateRoom</a> and
<a target ='_blank' href="https://developers.docusign.com/rooms-api/reference/Roles/Roles/GetRoles">Roles::GetRoles</a>
</p>
<p>
View source file <a target="_blank" href="{{ source_url | safe }}">{{ source_file }}</a> on GitHub.
</p>

<form class="eg" action="" method="post" data-busy="form">
<div class="form-group">
Expand Down
3 changes: 3 additions & 0 deletions app/rooms/templates/eg002_create_room_with_template.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ <h4>2. Creating a room with a template</h4>
<a target ='_blank' href="https://developers.docusign.com/rooms-api/reference/RoomTemplates/RoomTemplates/GetRoomTemplates">RoomTemplates::GetRoomTemplates</a> and
<a target ='_blank' href="https://developers.docusign.com/rooms-api/reference/Roles/Roles/GetRoles">Roles::GetRoles</a>
</p>
<p>
View source file <a target="_blank" href="{{ source_url | safe }}">{{ source_file }}</a> on GitHub.
</p>

<form class="eg" action="" method="post" data-busy="form">
{% if templates %}
Expand Down
3 changes: 3 additions & 0 deletions app/rooms/templates/eg003_export_data_from_room.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ <h4>3. Exporting data from a room</h4>
<a target ='_blank' href="https://developers.docusign.com/rooms-api/reference/Rooms/Rooms/GetRooms">Rooms::GetRooms</a> and
<a target ='_blank' href="https://developers.docusign.com/rooms-api/reference/Rooms/Rooms/GetRoomFieldData">Rooms::GetRoomFieldData</a>
</p>
<p>
View source file <a target="_blank" href="{{ source_url | safe }}">{{ source_file }}</a> on GitHub.
</p>

<form class="eg" action="" method="post" data-busy="form">
{% if rooms %}
Expand Down
3 changes: 3 additions & 0 deletions app/rooms/templates/eg004_add_forms_to_room.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ <h4>4. Adding forms to a room</h4>
<a target ='_blank' href="https://developers.docusign.com/rooms-api/reference/Forms/FormLibraries/GetFormLibraryForms">Forms::GetFormLibraryForms</a> and
<a target ='_blank' href="https://developers.docusign.com/rooms-api/reference/Rooms/Rooms/AddFormToRoom">Rooms::AddFormToRoom</a>
</p>
<p>
View source file <a target="_blank" href="{{ source_url | safe }}">{{ source_file }}</a> on GitHub.
</p>

<form class="eg" action="" method="post" data-busy="form">
{% if rooms %}
Expand Down
3 changes: 3 additions & 0 deletions app/rooms/templates/eg005_get_rooms_with_filters.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ <h4>5. Getting rooms with filters</h4>
<p>API method used:
<a target ='_blank' href="https://developers.docusign.com/rooms-api/reference/Rooms/Rooms/GetRooms">Rooms::GetRooms</a>
</p>
<p>
View source file <a target="_blank" href="{{ source_url | safe }}">{{ source_file }}</a> on GitHub.
</p>

<form class="eg" action="" method="post" data-busy="form">
{% if rooms %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ <h4>6. Creating an external form fill session</h4>
<a target ='_blank' href="https://developers.docusign.com/rooms-api/reference/Rooms/Rooms/GetRooms">Rooms::GetRooms</a>,
<a target ='_blank' href="https://developers.docusign.com/docs/rooms-api/reference/Rooms/Rooms/GetDocuments/">Rooms::GetDocuments</a> and
<a target ='_blank' href="https://developers.docusign.com/rooms-api/reference/Forms/ExternalFormFillSessions/CreateExternalFormFillSession">Forms::CreateExternalFormFillSession</a>
</p>
<p>
View source file <a target="_blank" href="{{ source_url | safe }}">{{ source_file }}</a> on GitHub.
</p>
{% if rooms %}
<form class="eg" action="/forms" method="post" data-busy="form">
Expand Down
3 changes: 3 additions & 0 deletions app/rooms/templates/eg007_create_form_group.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ <h4>7. Creating a form group</h4>
<p>API methods used:
<a target ='_blank' href="https://developers.docusign.com/docs/rooms-api/how-to/create-form-group/">Rooms::CreateFormGroup</a>
</p>
<p>
View source file <a target="_blank" href="{{ source_url | safe }}">{{ source_file }}</a> on GitHub.
</p>

<form class="eg" action="" method="post" data-busy="form">
<div class="form-group">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ <h4>8. Grant office access to a form group</h4>
<a target ='_blank' href="https://developers.docusign.com/docs/rooms-api/reference/forms/formgroups/getformgroups/">FormGroups::GetFormGroups</a> and
<a target ='_blank' href="https://developers.docusign.com/docs/rooms-api/reference/offices/offices/getoffices/">Offices::GetOffices</a>
</p>
<p>
View source file <a target="_blank" href="{{ source_url | safe }}">{{ source_file }}</a> on GitHub.
</p>

<form class="eg" action="" method="post" data-busy="form">
{% if form_groups %}
Expand Down
3 changes: 3 additions & 0 deletions app/rooms/templates/eg009_assign_form_to_form_group.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ <h4>9. Assign a form to a form group</h4>
<a target ='_blank' href="https://developers.docusign.com/docs/rooms-api/reference/forms/formgroups/getformgroups/">FormGroups::GetFormGroups</a> and
<a target ='_blank' href="https://developers.docusign.com/docs/rooms-api/reference/forms/formlibraries/getformlibraries/">FormLibraries:GetFormLibraries</a>
</p>
<p>
View source file <a target="_blank" href="{{ source_url | safe }}">{{ source_file }}</a> on GitHub.
</p>

<form class="eg" action="" method="post" data-busy="form">
{% if form_groups %}
Expand Down