Browse Source

Merge branch 'master' into DIV-1023

# Conflicts:
#	edivorce/apps/core/efilinghub.py
#	edivorce/apps/core/utils/cso_filing.py
#	edivorce/settings/base.py
pull/172/head
ariannedee 5 years ago
parent
commit
4740eb1065
15 changed files with 47 additions and 31 deletions
  1. +18
    -12
      edivorce/apps/core/efilinghub.py
  2. +3
    -0
      edivorce/apps/core/management/commands/link_check.py
  3. +1
    -1
      edivorce/apps/core/templates/legal.html
  4. +1
    -1
      edivorce/apps/core/templates/pdf/partials/fact_sheet_d.html
  5. +2
    -2
      edivorce/apps/core/templates/prequalification/step_02.html
  6. +2
    -2
      edivorce/apps/core/templates/prequalification/step_03.html
  7. +1
    -1
      edivorce/apps/core/templates/prequalification/step_04.html
  8. +2
    -2
      edivorce/apps/core/templates/prequalification/step_05.html
  9. +2
    -2
      edivorce/apps/core/templates/question/05_separation.html
  10. +1
    -1
      edivorce/apps/core/templates/question/06_children_income_expenses.html
  11. +2
    -2
      edivorce/apps/core/templates/question/06_children_what_for.html
  12. +1
    -1
      edivorce/apps/core/templates/question/08_property.html
  13. +8
    -4
      edivorce/apps/core/utils/cso_filing.py
  14. +1
    -0
      edivorce/settings/base.py
  15. +2
    -0
      edivorce/settings/local.py

+ 18
- 12
edivorce/apps/core/efilinghub.py View File

@ -231,19 +231,19 @@ class EFilingHub:
package['filingPackage']['parties'] = parties
# update return urls
if self.initial_filing:
package['navigationUrls']['error'] = request.build_absolute_uri(
reverse('dashboard_nav', args=['initial_filing']))
package['navigationUrls']['cancel'] = request.build_absolute_uri(
reverse('dashboard_nav', args=['initial_filing'])) + '?cancelled=1'
package['navigationUrls']['success'] = request.build_absolute_uri(
reverse('after_submit_initial_files'))
package['navigationUrls']['error'] = self._get_absolute_url(
request, reverse('dashboard_nav', args=['initial_filing']))
package['navigationUrls']['cancel'] = self._get_absolute_url(
request, reverse('dashboard_nav', args=['initial_filing'])) + '?cancelled=1'
package['navigationUrls']['success'] = self._get_absolute_url(
request, reverse('after_submit_initial_files'))
else:
package['navigationUrls']['error'] = request.build_absolute_uri(
reverse('dashboard_nav', args=['final_filing']))
package['navigationUrls']['cancel'] = request.build_absolute_uri(
reverse('dashboard_nav', args=['final_filing'])) + '?cancelled=1'
package['navigationUrls']['success'] = request.build_absolute_uri(
reverse('after_submit_final_files'))
package['navigationUrls']['error'] = self._get_absolute_url(
request, reverse('dashboard_nav', args=['final_filing']))
package['navigationUrls']['cancel'] = self._get_absolute_url(
request, reverse('dashboard_nav', args=['final_filing'])) + '?cancelled=1'
package['navigationUrls']['success'] = self._get_absolute_url(
request, reverse('after_submit_final_files'))
return package
@ -366,6 +366,12 @@ class EFilingHub:
return d
def _get_absolute_url(self, request, path):
if settings.PROXY_BASE_URL:
return settings.PROXY_BASE_URL + path
else:
return request.build_absolute_uri(path)
# -- EFILING HUB INTERFACE --
def get_files(self, request, responses, uploaded, generated):


+ 3
- 0
edivorce/apps/core/management/commands/link_check.py View File

@ -29,6 +29,9 @@ class Command(BaseCommand):
file_path = os.path.join(root, file)
fs = open(file_path)
print('Parsing: ' + fs.name)
soup = BeautifulSoup(fs, 'html.parser')
links = soup.find_all('a', href=True)
for link in links:


+ 1
- 1
edivorce/apps/core/templates/legal.html View File

@ -23,7 +23,7 @@
<h4>Online resources</h4>
<p>
You may want to look at the <a href="https://familylaw.lss.bc.ca/guides/divorce/" target="_blank">Divorce self-help kit</a>
You may want to look at the <a href="https://familylaw.lss.bc.ca/guides#separation-divorce" target="_blank">Divorce self-help guide</a>
on the Family Law in British Columbia website for a step-by-step guide. You can also visit
<a href="http://wiki.clicklaw.bc.ca/index.php/Separation_%26_Divorce" target="_blank">ClickLaw</a> and the
<a href="http://www.justiceeducation.ca/" target="_blank">Justice Education Society</a> for online legal information.


+ 1
- 1
edivorce/apps/core/templates/pdf/partials/fact_sheet_d.html View File

@ -12,7 +12,7 @@
{{ responses.number_children_over_19_need_support }}
</li>
<li>
Child support is to be paid by {{ derived.child_support_payor }} (the “payor”)
Child support is to be paid by {{ derived.child_support_payor }} (the &ldquo;payor&rdquo;)
</li>
<li>
Monthly Guidelines table amount of the payor under Schedule 1 of the Guidelines:


+ 2
- 2
edivorce/apps/core/templates/prequalification/step_02.html View File

@ -147,9 +147,9 @@
{% block sidebarText %}
<p><strong>Ordinarily Resident</strong></p>
<p>
The legal definition of “ordinarily resident” is: the place where in the
The legal definition of &ldquo;ordinarily resident&rdquo; is: the place where in the
settled routine of an individual's life, he or she regularly, normally or
customarily lives. “Ordinarily” is the word is used in s. 3(1) of the
customarily lives. &ldquo;Ordinarily&rdquo; is the word is used in s. 3(1) of the
Divorce Act…. A court in a province has jurisdiction to hear and determine a
divorce proceeding if either spouse has been ordinarily resident in the
province for at least one year immediately preceding the


+ 2
- 2
edivorce/apps/core/templates/prequalification/step_03.html View File

@ -193,9 +193,9 @@
of 90 days or less. If they live together for more than 90 days,
the one-year period of separation starts all over again from the
date of the last separation. For more information on separation,
refer to <a
refer to &ldquo;<a
href="http://www.cbabc.org/For-the-Public/Dial-A-Law/Scripts/Family-Law/115"
target="_blank">Separation and Separation Agreements</a> from the
target="_blank">Separation and Separation Agreements</a>&rdquo; from the
Canadian Bar Association.</p>
</div>
</div>


+ 1
- 1
edivorce/apps/core/templates/prequalification/step_04.html View File

@ -287,7 +287,7 @@
<p>
Louis and Jocelyn are divorcing. They have established that the Federal Guidelines apply to
their situation. They now need to determine which of their children are
“children of the marriage” —that is, which ones are dependent and need their financial support.
&ldquo;children of the marriage&rdquo; —that is, which ones are dependent and need their financial support.
</p>
<p>
Tom and Sam are both under the age of majority and are still dependent. Louis and Jocelyn


+ 2
- 2
edivorce/apps/core/templates/prequalification/step_05.html View File

@ -31,7 +31,7 @@
title="<b>Original Marriage Certificate</b><br /><br />The marriage certificate you received at the church —
or any other place where you were married — isn't acceptable in court. You can get a marriage certificate
or a certified copy of the registration of marriage from
<a target='_blank' href='http://www2.gov.bc.ca/gov/content/life-events/marriages/marriage-certificates'>Vital Statistics</a>
<a target='_blank' href='https://www2.gov.bc.ca/gov/content?id=1CC89B10AE964BFABB99D1A4AADC38BF'>Vital Statistics</a>
(an office run by the provincial government)." >marriage certificate<i class="fa fa-question-circle" aria-hidden="true"></i></span>
or
<span class="tooltip-link" data-toggle="tooltip" data-placement="right" data-html="true"
@ -64,7 +64,7 @@
</div>
<div class="collapse" id="collapseExample">
<div>
<p><strong>If you were married in B.C. </strong><br />If you were married in B.C. you can get your marriage certificate or a certified copy of the registration of marriage from <a href="http://www2.gov.bc.ca/gov/content/life-events/marriages" target="_blank">Vital Statistics</a> (an office run by the provincial government).</p>
<p><strong>If you were married in B.C. </strong><br />If you were married in B.C. you can get your marriage certificate or a certified copy of the registration of marriage from <a href="https://www2.gov.bc.ca/gov/content?id=1CC89B10AE964BFABB99D1A4AADC38BF" target="_blank">Vital Statistics</a> (an office run by the provincial government).</p>
<p><strong>If You Were Married in Another Province</strong><br />
If you were married in another province you need to get the official marriage certificate or registration of marriage from the office equivalent to the Department of Vital Statistics in that province.</p>


+ 2
- 2
edivorce/apps/core/templates/question/05_separation.html View File

@ -33,11 +33,11 @@
<div class="question-well {% if no_collusion_error %}error{% endif %}">
<p>
We are legally required to ask whether or not you and {% spouse_name %}
have agreed to deceive the court. This is called <span class="tooltip-link" data-toggle="tooltip" data-placement="right" data-html="true"
have agreed to deceive the court. This is called &ldquo;<span class="tooltip-link" data-toggle="tooltip" data-placement="right" data-html="true"
title="<b>Collusion</b><br /><br />Basically this statement confirms that you and your spouse haven’t lied or tried to deceive the court
in any way (for example, saying that you’ve been separated for longer than you have been). It is a legal requirement that you confirm you
are providing accurate and complete information.">collusion<i class="fa fa-question-circle" aria-hidden="true"></i></span>
. An example of collusion is when a couple agrees to lie about the date of separation to speed up the divorce process.
&rdquo;. An example of collusion is when a couple agrees to lie about the date of separation to speed up the divorce process.
{% if no_collusion_error %}{% include 'partials/required.html' with inline=True %}{% endif %}
</p>
{% if no_collusion_error %}


+ 1
- 1
edivorce/apps/core/templates/question/06_children_income_expenses.html View File

@ -219,7 +219,7 @@
<p>
Schedule 1 refers to the federal child support tables which set out the amount of monthly child
support payments for each province on the basis of the annual income of the spouse ordered to pay
child support (the “support payer”) and the number of children for whom a table amount is payable.
child support (the &ldquo;support payer&rdquo;) and the number of children for whom a table amount is payable.
</p>
<table class="table table-hover table-bordered">
<thead>


+ 2
- 2
edivorce/apps/core/templates/question/06_children_what_for.html View File

@ -476,9 +476,9 @@
{% block formNext %}{% next_step step='children' sub_step='what_for' %}{% endblock %}
{% block sidebarText %}
<p><strong>What does the law mean by “best interests of the child”?</strong></p>
<p><strong>What does the law mean by &ldquo;best interests of the child&rdquo;?</strong></p>
<p>
The “best interests of the child” is a legal test used to decide what would best
The &ldquo;best interests of the child&rdquo; is a legal test used to decide what would best
protect your child’s physical, psychological, and emotional safety, security and
well-being. To determine what is in the child’s best interests when making parenting
arrangements, you must consider factors including:


+ 1
- 1
edivorce/apps/core/templates/question/08_property.html View File

@ -88,7 +88,7 @@
<div class="collapse" id="collapse_unequal_division">
<div>
<p>A court will divide family property or debt unequally only if it
would be “significantly unfair” to divide it equally. This means
would be &ldquo;significantly unfair&rdquo; to divide it equally. This means
that a court will not order an unequal division in most cases. The
court can look at a number of factors when deciding whether to
divide property or debt unequally.</p>


+ 8
- 4
edivorce/apps/core/utils/cso_filing.py View File

@ -28,19 +28,23 @@ def file_documents(request, responses, initial=False):
if errors:
return errors, None
hub = EFilingHub(initial_filing=initial)
if not settings.EFILING_HUB_ENABLED:
return after_file_documents(request, initial)
hub = EFilingHub(initial_filing=initial)
post_files, documents = hub.get_files(request, responses, uploaded, generated)
location = hub.get_location(responses)
parties = hub.get_parties(responses)
redirect_url, msg = hub.upload(request, post_files, documents, parties, location)
if msg != 'success':
errors.append(msg)
return errors, None
if redirect_url:
return errors, redirect_url
return None, redirect_url
if msg:
return [msg], None
return None, None


+ 1
- 0
edivorce/settings/base.py View File

@ -185,6 +185,7 @@ DEBUG_TOOLBAR_CONFIG = {
SECURE_BROWSER_XSS_FILTER = True
# eFiling Hub settings
EFILING_HUB_ENABLED = True
EFILING_HUB_TOKEN_BASE_URL = env('EFILING_HUB_TOKEN_BASE_URL', 'https://efiling.gov.bc.ca')
EFILING_HUB_REALM = env('EFILING_HUB_REALM', 'abc')
EFILING_HUB_CLIENT_ID = env('EFILING_HUB_CLIENT_ID', 'abc')


+ 2
- 0
edivorce/settings/local.py View File

@ -49,3 +49,5 @@ OIDC_OP_USER_ENDPOINT = 'http://localhost:8081/auth/realms/justice/protocol/open
KEYCLOAK_LOGOUT = 'http://localhost:8081/auth/realms/justice/protocol/openid-connect/logout'
OIDC_RP_CLIENT_ID = 'edivorce-app'
LOGIN_REDIRECT_URL = '/signin'
EFILING_HUB_ENABLED = False

Loading…
Cancel
Save