Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

merge kelly's commit #636

Merged
merged 4 commits into from
Jul 30, 2024
Merged
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
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
id: edde include
include:
- shared.yml
---
Expand All @@ -21,12 +22,15 @@ metadata:
al_weaver_version: "1.7.0"
generated on: "2022-09-08"
---
id: edde modules
modules:
- docassemble.ALToolbox.al_income
---
id: edde interview_short_title
code: |
interview_short_title = "Eviction Defender"
---
id: edde sections block
sections:
- section_eviction_answer_intro: Getting started
- section_eviction_answer_can_i: Should you file an Answer?
Expand All @@ -39,10 +43,12 @@ sections:
- section_eviction_discovery: Discovery
- section_eviction_answer_download: Download, print, deliver, and file
---
id: edde user role
code: |
user_role = user_ask_role = "defendant"
---
###################### Main order ######################
id: main order
mandatory: True
code: |
al_intro_screen
Expand Down Expand Up @@ -83,7 +89,16 @@ code: |
set_progress(90)
track_discovery

al_user_wants_reminders

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


docket_review_conclusion
set_progress(100)
store_variables_snapshot(
Expand Down Expand Up @@ -116,37 +131,47 @@ code: |
)
eviction_defender_download
---
id: snapshot_user_information_time
code: |
snapshot_user_information_time = current_datetime(timezone = 'America/Chicago')
---
id: beginning_to_user_information_duration
code: |
beginning_to_user_information_duration = date_difference(starting=start_time(timezone = 'America/Chicago'),ending = snapshot_user_information_time)
---
id: snapshot_case_information_time
code: |
snapshot_case_information_time = current_datetime(timezone = 'America/Chicago')
---
id: user_to_case_information_duration
code: |
user_to_case_information_duration = date_difference(starting=snapshot_user_information_time,ending = snapshot_case_information_time)
---
id: snapshot_review_time
code: |
snapshot_review_time = current_datetime(timezone = 'America/Chicago')
---
id: case_to_review_duration
code: |
case_to_review_duration = date_difference(starting=snapshot_case_information_time, ending = snapshot_review_time)
---
id: snapshot_discovery_time
code: |
snapshot_discovery_time = current_datetime(timezone = 'America/Chicago')
---
id: review_to_discovery_duration
code: |
review_to_discovery_duration = date_difference(starting=snapshot_review_time, ending = snapshot_discovery_time)
---
id: discovery_to_final_duration
code: |
discovery_to_final_duration = date_difference(starting=snapshot_discovery_time, ending = current_datetime(timezone = 'America/Chicago') )
---
id: total_interview_duration
code: |
total_interview_duration = date_difference(starting=start_time(timezone = 'America/Chicago'),ending = current_datetime(timezone = 'America/Chicago') )
---
id: defense logic order
id: defenses_list
comment: |
This can't be the best way to do this. Can a DADict act like a checkboxes dictionary?
code: |
Expand Down Expand Up @@ -205,6 +230,7 @@ code: |
temp_defenses_list.append("Excessive Rent for Subsidized Housing")
defenses_list = temp_defenses_list
---
id: track_intro
code: |
store_variables_snapshot(
persistent=True,
Expand All @@ -215,6 +241,7 @@ code: |
)
track_intro = True
---
id: track_user_information
code: |
store_variables_snapshot(
persistent=True,
Expand All @@ -233,6 +260,7 @@ code: |
)
track_user_information = True
---
id: track_case_information
code: |
store_variables_snapshot(
persistent=True,
Expand All @@ -255,6 +283,7 @@ code: |
)
track_case_information = True
---
id: track_review
code: |
store_variables_snapshot(
persistent=True,
Expand All @@ -281,6 +310,7 @@ code: |
)
track_review = True
---
id: track_discovery
code: |
store_variables_snapshot(
persistent=True,
Expand Down Expand Up @@ -310,9 +340,9 @@ code: |
track_discovery = True
---
#################### Interview order #####################
id: interview_order_eviction
comment: |
Controls order and branching logic for questions specific to this form
id: interview_order_eviction
code: |
############## Intro
nav.set_section('section_eviction_answer_intro')
Expand Down Expand Up @@ -432,22 +462,26 @@ code: |

document_order = True
---
id: precheck_items
code: |
interrogatories.precheck_items(limit=24)
document_requests.precheck_items(limit=None)
precheck_items = True
---
## other parties
## other parties
id: plaintiffs
code: |
other_parties[i].name.first
other_parties[i].attorney.gather()
other_parties[i].complete = True
---
## other party's attorneys
id: plaintiffs attorney
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
Expand All @@ -473,6 +507,7 @@ buttons:
---
sets: posting_warning
id: soft exit posting eviction
sets: posting_warning
decoration: hand
question: |
% if person_answering == "tenant":
Expand Down Expand Up @@ -608,6 +643,7 @@ subquestion: |
% endif
continue button field: recommend_filing_answer
---
id: landlord problems section order
code: |
if warranty_breaches.any_true():
notice_of_breach_to_landlord
Expand All @@ -625,18 +661,18 @@ subquestion: |
Missouri Tenant Help can help you complete and download forms in 3 steps:


Step 1. Fill in your form.
Step 1. Answer the questions that are asked.

Step 2. Preview the completed form.
Step 2. Preview the completed forms.

% if form_approved_for_email_filing:
Step 3. Email the form to the court using this secure website and save copies
Step 3. Email the forms to the court using this secure website and save copies
for yourself for later reference.
% elif al_form_type in ['starts_case','existing_case','appeal']:
Step 3. Download and print the final form. **You will need to deliver it
Step 3. Download and print the final forms. **You will need to deliver the forms
to the court on your own.**
% else:
Step 3. Download and print the final form. **You will need to deliver it
Step 3. Download and print the final forms. **You will need to deliver the forms
on your own.**
% endif

Expand Down Expand Up @@ -718,6 +754,16 @@ continue button field: eviction_defender_intro
buttons:
- I agree: continue
---
id: case type kickout for answer
only sets: case_type_kickout
code: |
if not case_type["AC Rent and Possession"] and not case_type["AC Landlord Action (Bulk)"]:
if unlawful_detainer_kick_out_option:
motion_to_continue_order
case_type_kickout = True
---
id: petition review order

code: |
docket_number
filing_date
Expand Down Expand Up @@ -750,9 +796,11 @@ depends on: original_hearing_date_past
code: |
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 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
---
Expand Down Expand Up @@ -796,6 +844,7 @@ 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 or motion_to_set_aside_attachment.enabled
---
id: motions for hearing
code: |
motions_for_hearing_temp = list()
if motion_to_shorten_time_attachment.enabled and "Motion to Shorten Time" not in motions_for_hearing_temp:
Expand All @@ -806,6 +855,7 @@ code: |
motions_for_hearing_temp.append("Motion to Continue")
motions_for_hearing = motions_for_hearing_temp
---
id: assembled_documents
code: |
assembled_documents_temp = list()
if "Answer" not in assembled_documents_temp:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ metadata:
- Ian Eisaman
- Mia Bonardi
---
id: main interview order
comment: |
I added document_order, which is set in the individual interviews.
###################### Main order ######################
Expand Down Expand Up @@ -48,9 +49,9 @@ code: |
eviction_defender_download
---
#################### Interview order #####################
id: interview_order_eviction_motion_to_continue
comment: |
Controls order and branching logic for the motion to continue, which may be used in a standalone interview and may be used in other interviews with other forms.
id: interview_order_eviction_motion_to_continue
code: |
# Set the allowed courts for this interview REMOVED
nav.set_section('section_eviction_answer_intro')
Expand Down Expand Up @@ -82,6 +83,7 @@ code: |
set_progress(50)
motion_to_continue_order = True
---
id: eviction defender metadata
comment: |
Global interview metadata
This block needs to be above the include block so that this mandatory block is run before any mandatory blocks in the shared.yml
Expand All @@ -104,14 +106,17 @@ data:
typical role: "defendant"
generate download screen: True
---
id: include motion to continue
comment: |
This needs to be below the global interview metadata
include:
- shared.yml
---
id: interview_short_title
code: |
interview_short_title = "Motion to Continue"
---
id: sections block
sections:
- section_eviction_answer_intro: Introduction
- section_eviction_answer_can_i: Should you file a Motion to Continue?
Expand Down Expand Up @@ -211,8 +216,8 @@ subquestion: |
At the end you will have customized documents, ready to {file} in court.
continue button field: greet_user
---
sets: posting_warning
id: soft exit posting for motion for continuance
sets: posting_warning
decoration: hand
question: |
% if person_answering == "tenant":
Expand Down Expand Up @@ -339,6 +344,7 @@ subquestion: |
% endif
continue button field: recommend_filing_answer
---

id: original hearing
question: |
% if person_answering == "tenant":
Expand Down Expand Up @@ -382,21 +388,27 @@ fields:
js show if: |
val("original_hearing_time") == "Other"
---
id: eviction_answer_attachment enabled
code: |
eviction_motion_to_continue_attachment.enabled = True
---
id: eviction_answer_attachment disabled
code: |
eviction_answer_attachment.enabled = False
---
id: eviction_defender_post_interview_instructions disabled
code: |
eviction_defender_post_interview_instructions.enabled = False
---
id: eviction_motion_for_leave_attachment disabled
code: |
eviction_motion_for_leave_attachment.enabled = False
---
id: motion_to_shorten_time_attachment disabled
code: |
motion_to_shorten_time_attachment.enabled = False
---
id: eviction_discovery_attachment disabled
code: |
eviction_discovery_attachment.enabled = False
---
Expand Down
Loading
Loading