Skip to content

Commit

Permalink
Merge branch 'updatedaddmotions' into updated2
Browse files Browse the repository at this point in the history
  • Loading branch information
tobyfey authored Jul 30, 2024
2 parents 1c4a6aa + 6269529 commit 84ee9cb
Show file tree
Hide file tree
Showing 6 changed files with 624 additions and 518 deletions.
135 changes: 110 additions & 25 deletions docassemble/MOHUDEvictionProject/data/questions/MOHUDEvictionProject.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,16 @@ code: |
eviction_defender_intro
document_order
nav.set_section("review_eviction_answer")
signpost_service_of_process
nav.set_section("section_eviction_answer_download")
signature_date
if other_parties[0].service_method == "email":
other_parties[0].service_email
elif other_parties[0].service_method in ["mail", "hand"]:
other_parties[0].service_address.address
review_eviction_answer
track_review
Expand All @@ -69,13 +79,17 @@ code: |
if customize_discovery_choice == "customize_discovery":
customize_discovery_requests
review_discovery_requests
if motion_to_shorten_time_attachment.enabled:
motion_to_shorten_time_order
motions_for_hearing
notice_of_hearing_attachment.enabled
set_progress(90)
track_discovery
signpost_service_of_process
nav.set_section("section_eviction_answer_download")
signature_date
Expand All @@ -84,6 +98,7 @@ code: |
elif other_parties[0].service_method in ["mail", "hand"]:
other_parties[0].service_address.address
docket_review_conclusion
set_progress(100)
store_variables_snapshot(
Expand All @@ -96,16 +111,16 @@ code: |
"zip": showifdef("users[0].address.zip"),
"city": showifdef("users[0].address.city"),
"county": showifdef("users[0].address.county"),
"user_information_time": snapshot_user_information_time,
"beginning_to_user_information_duration": beginning_to_user_information_duration.minutes,
"case_information_time": snapshot_case_information_time,
"user_to_case_information_duration": user_to_case_information_duration.minutes,
"user_information_time": showifdef("snapshot_user_information_time"),
"beginning_to_user_information_duration": showifdef("beginning_to_user_information_duration.minutes"),
"case_information_time": showifdef("snapshot_case_information_time"),
"user_to_case_information_duration": showifdef("user_to_case_information_duration.minutes"),
"case_type": case_type.true_values().elements,
"eviction_reason": eviction_reason.true_values().elements,
"review_time": snapshot_review_time,
"case_to_review_duration": case_to_review_duration.minutes,
"case_to_review_duration": showifdef("case_to_review_duration.minutes"),
"discovery_time": snapshot_discovery_time,
"defenses_list": defenses_list,
"defenses_list": showifdef("defenses_list"),
"review_to_discovery_duration": review_to_discovery_duration.minutes,
"assembled_documents": assembled_documents,
"download_time": current_datetime(timezone = 'America/Chicago'),
Expand Down Expand Up @@ -280,16 +295,16 @@ code: |
"zip": showifdef("users[0].address.zip"),
"city": showifdef("users[0].address.city"),
"county": showifdef("users[0].address.county"),
"user_information_time": snapshot_user_information_time,
"user_information_time": showifdef("snapshot_user_information_time"),
"beginning_to_user_information_duration": beginning_to_user_information_duration.minutes,
"case_information_time": snapshot_case_information_time,
"user_to_case_information_duration": user_to_case_information_duration.minutes,
"case_information_time": showifdef("snapshot_case_information_time"),
"user_to_case_information_duration": showifdef("user_to_case_information_duration.minutes"),
"case_type": case_type.true_values().elements,
"eviction_reason": eviction_reason.true_values().elements,
"review_time": snapshot_review_time,
"case_to_review_duration": case_to_review_duration.minutes,
"discovery_time": snapshot_discovery_time,
"defenses_list": defenses_list,
"case_to_review_duration": showifdef("case_to_review_duration.minutes"),
"discovery_time": showifdef("snapshot_discovery_time"),
"defenses_list": showifdef("defenses_list"),
"reached_interview_end": False
},
)
Expand All @@ -307,16 +322,16 @@ code: |
"zip": showifdef("users[0].address.zip"),
"city": showifdef("users[0].address.city"),
"county": showifdef("users[0].address.county"),
"user_information_time": snapshot_user_information_time,
"beginning_to_user_information_duration": beginning_to_user_information_duration.minutes,
"case_information_time": snapshot_case_information_time,
"user_to_case_information_duration": user_to_case_information_duration.minutes,
"user_information_time": showifdef("snapshot_user_information_time"),
"beginning_to_user_information_duration": showifdef("beginning_to_user_information_duration.minutes"),
"case_information_time": showifdef("snapshot_case_information_time"),
"user_to_case_information_duration": showifdef("user_to_case_information_duration.minutes"),
"case_type": case_type.true_values().elements,
"eviction_reason": eviction_reason.true_values().elements,
"review_time": snapshot_review_time,
"case_to_review_duration": case_to_review_duration.minutes,
"case_to_review_duration": showifdef("case_to_review_duration.minutes"),
"discovery_time": snapshot_discovery_time,
"defenses_list": defenses_list,
"defenses_list": showifdef("defenses_list"),
"review_to_discovery_duration": review_to_discovery_duration.minutes,
"assembled_documents": assembled_documents,
"reached_interview_end": False
Expand Down Expand Up @@ -376,6 +391,15 @@ code: |
trial_court.name
original_hearing_date
if original_hearing_date_past:
if final_judgment:
if motion_to_set_aside_attachment.enabled:
if motion_to_set_aside_judgment_order_exit:
motion_to_set_aside_exit
elif judgment_date_more_than_one_year:
old_judgment_warning
eviction_motion_to_continue_attachment.enabled
eviction_motion_for_leave_attachment.enabled
petition_date
# Eviction reasons
Expand Down Expand Up @@ -430,6 +454,7 @@ code: |
if landlord_agreement:
tenant_compliance_with_agreement
defense_logic
any_defense_true
information_collected
nav.set_section("review_eviction_answer")
Expand All @@ -456,6 +481,31 @@ code: |
other_parties[i].attorney[0].name.first
other_parties[i].attorney.complete = True
---

sets: old_judgment_warning
id: soft exit old judgment
decoration: hand
question: |
% if person_answering == "tenant":
You may not want to {file} an {answer}
% else:
The tenant may not want to {file} an {answer}
% endif
subquestion: |
% if person_answering == "tenant":
You said that the final judgment date was $( judgment_date }, which was more than a year ago. Although you may still be able to set aside the judgment, you should talk to a lawyer because it is more complicated.
% else:
You said that the final judgment date was $( judgment_date }, which was more than a year ago. Although the tenant may still be able to set aside the judgment, the tenant should talk to a lawyer because it is more complicated.
% endif
buttons:
- ${"I understand, let me keep going" if person_answering == "tenant" else "The tenant understands, let them keep going"}:
code: |
old_judgment_warning = True
- Exit: exit
url: https://motenanthelp.org/
---
sets: posting_warning
id: soft exit posting eviction
sets: posting_warning
decoration: hand
Expand Down Expand Up @@ -713,6 +763,7 @@ code: |
case_type_kickout = True
---
id: petition review order

code: |
docket_number
filing_date
Expand All @@ -738,28 +789,60 @@ comment: |
id: add motion to continue if hearing not in the past
depends on: original_hearing_date_past
code: |
eviction_motion_to_continue_attachment.enabled = not original_hearing_date_past
eviction_motion_to_continue_attachment.enabled = not original_hearing_date_past and not motion_to_set_aside_attachment.enabled
---
id: add motion for leave to file if hearing is in the past
depends on: original_hearing_date_past
code: |
eviction_motion_for_leave_attachment.enabled = original_hearing_date_past
eviction_motion_for_leave_attachment.enabled = original_hearing_date_past and not motion_to_set_aside_attachment.enabled
---
id: add eviction discovery if wants discovery
code: |
eviction_discovery_attachment.enabled = wants_discovery
eviction_discovery_attachment.enabled = wants_discovery and not motion_to_set_aside_attachment.enabled
---
id: add motion to shorten time if wants discovery and hearing date in future
code: |
motion_to_shorten_time_attachment.enabled = wants_discovery and not original_hearing_date_past
---
depends on:
- final_judgment
- judgment_date_more_than_one_year
code: |
motion_to_set_aside_attachment.enabled = final_judgment and not judgment_date_more_than_one_year
---
question: Motion to Set Aside
subquestion: |
You said that there has already been a final judgment. In that case, filing a Motion to Set Aside Judgment is required before filing anything else.
Do you want to make a Motion to Set Aside Judgment as recommended or do you want to finish the Answer anyway?
field: motion_to_set_aside_judgment_order_exit
datatype: boolean
buttons:
code: |
[{'label': "Motion to Set Aside Judgment",
'value': True,
'css class': 'good',
'color': 'success'},
{'label': "Finish the eviction answer",
'value': False,
'css class': 'clueless',
'color': 'danger'}]
---
only sets: motion_to_set_aside_exit
code: |
petition_date
supporting_statement
wants_discovery = False
document_order = True
motion_to_set_aside_exit = True
---
id: add motion to dismiss if no lease
code: |
motion_to_dismiss_attachment.enabled = defense_lease_not_attached
motion_to_dismiss_attachment.enabled = not motion_to_set_aside_attachment.enabled and defense_lease_not_attached
---
id: add notice of hearing if any motions enabled
code: |
notice_of_hearing_attachment.enabled = motion_to_shorten_time_attachment.enabled or eviction_motion_for_leave_attachment.enabled or eviction_motion_to_continue_attachment.enabled
notice_of_hearing_attachment.enabled = motion_to_shorten_time_attachment.enabled or eviction_motion_for_leave_attachment.enabled or eviction_motion_to_continue_attachment.enabled or motion_to_set_aside_attachment.enabled
---
id: motions for hearing
code: |
Expand Down Expand Up @@ -787,12 +870,14 @@ code: |
assembled_documents_temp.append("Discovery")
if motion_to_shorten_time_attachment.enabled and "Motion to Shorten Time" not in assembled_documents_temp:
assembled_documents_temp.append("Motion to Shorten Time")
if motion_to_set_aside_attachment.enabled and "Motion to Set Aside Judgment" not in assembled_documents_temp:
assembled_documents_temp.append("Motion to Set Aside Judgment")
assembled_documents = assembled_documents_temp
---
id: eviction answer determination code
code: |
# We now handle unlawful detainer cases
eviction_answer_attachment.enabled = True
eviction_answer_attachment.enabled = not motion_to_set_aside_attachment.enabled
---
id: signpost claims and defenses section
decoration: user-shield
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,7 @@ code: |
users[0].address.geocode()
nav.set_section("section_eviction_answer_casenet")
trial_court.name
if not trial_court.county == None and tenant_using_casenet:
docket_review
use_case_net_for_online_docket
nav.set_section("section_eviction_answer_other")
other_parties.gather()
for party in other_parties:
Expand Down Expand Up @@ -345,6 +344,50 @@ subquestion: |
% endif
continue button field: recommend_filing_answer
---

id: original hearing
question: |
% if person_answering == "tenant":
When is your court {hearing}?
% else:
When is the tenant's court {hearing}?
% endif
subquestion: |
% if tenant_got_summons and petition_available:
% if person_answering == "tenant":
The {Summons} will say the time and date of your original court hearing.
% else:
The {Summons} will say the time and date of the tenant's original court hearing.
% endif
[FILE MOSummonsHearingDate.png, 100%]
${ collapse_template(find_original_hearing_on_casenet_template) }
% else:
% if person_answering == "tenant":
Using [Case.net](https://www.courts.mo.gov/cnet), you can find the time and date of your original court hearing on the "Scheduled Hearings and Trials" tab of your case.
% else:
Using [Case.net](https://www.courts.mo.gov/cnet), you can find the time and date of the tenant's original court hearing on the "Scheduled Hearings and Trials" tab of their case.
% endif
${ collapse_template(find_original_hearing_on_casenet_template) }
% endif
fields:
- "Date of original hearing": original_hearing_date
datatype: date
min: ${ today() }
- "Original hearing time": original_hearing_time
datatype: radio
choices:
- 9:00 AM
- Other
default: 9:00 AM
- Time: other_time
js show if: |
val("original_hearing_time") == "Other"
---
id: eviction_answer_attachment enabled
code: |
eviction_motion_to_continue_attachment.enabled = True
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,39 @@ code: |
defense_logic = True
---
id: breach defense logic
depends on:
- defense_vawa
- defense_reasonable_accommodation
- defense_discrimination
- defense_ll_refused_section_8
- defense_rent_pleading_requirement
- defense_lease_not_attached
- defense_tender_refused
- defense_rent_payment
- defense_excessive_rent_for_subsidized_housing
- defense_settlement
- defense_lease_signed_under_duress
- defense_fraud_lease
- defense_liquidated_damages_late_fees
- defense_breach_of_habitability
- defense_breach_of_cqe
- defense_estoppel_illegality
- defense_foreclosure
- defense_new_owner_failed_to_provide_notice_of_sale
- defense_unrepresented_corporation
- defense_ud_no_written_notice
- defense_ud_no_rental_period_notice
- defense_ud_lease_requirements
- defense_termination_notice_required_by_law
- defense_failure_to_terminate
code: |
any_defense_true = defense_vawa or defense_reasonable_accommodation or defense_discrimination or defense_ll_refused_section_8 or defense_rent_pleading_requirement or defense_lease_not_attached or defense_tender_refused or defense_rent_payment or defense_excessive_rent_for_subsidized_housing or defense_settlement or defense_lease_signed_under_duress or defense_fraud_lease or defense_liquidated_damages_late_fees or defense_breach_of_habitability or defense_breach_of_cqe or defense_estoppel_illegality or defense_foreclosure or defense_new_owner_failed_to_provide_notice_of_sale or defense_unrepresented_corporation or defense_ud_no_written_notice or defense_ud_no_rental_period_notice or defense_ud_lease_requirements or defense_termination_notice_required_by_law or defense_failure_to_terminate
---
depends on:
- defense_no_breach
- defense_breach_not_material
code: |
if case_type["AC Unlawful Detainer"]:
if eviction_reason["lease violation"]:
defense_ud_did_not_violate_lease = (
defense_no_breach or
defense_breach_not_material
Expand Down
Loading

0 comments on commit 84ee9cb

Please sign in to comment.