Skip to content

Commit

Permalink
Added an id to all blocks missing one.
Browse files Browse the repository at this point in the history
  • Loading branch information
KelizaMcGuire committed Jul 30, 2024
1 parent a18fe5a commit 2da370e
Show file tree
Hide file tree
Showing 14 changed files with 253 additions and 22 deletions.
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 @@ -110,37 +116,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 @@ -199,6 +215,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 @@ -209,6 +226,7 @@ code: |
)
track_intro = True
---
id: track_user_information
code: |
store_variables_snapshot(
persistent=True,
Expand All @@ -227,6 +245,7 @@ code: |
)
track_user_information = True
---
id: track_case_information
code: |
store_variables_snapshot(
persistent=True,
Expand All @@ -249,6 +268,7 @@ code: |
)
track_case_information = True
---
id: track_review
code: |
store_variables_snapshot(
persistent=True,
Expand All @@ -275,6 +295,7 @@ code: |
)
track_review = True
---
id: track_discovery
code: |
store_variables_snapshot(
persistent=True,
Expand Down Expand Up @@ -304,9 +325,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 @@ -416,24 +437,27 @@ 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: posting_warning
id: soft exit posting eviction
sets: posting_warning
decoration: hand
question: |
% if person_answering == "tenant":
Expand Down Expand Up @@ -569,6 +593,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 Down Expand Up @@ -679,14 +704,15 @@ continue button field: eviction_defender_intro
buttons:
- I agree: continue
---
only sets: case_type_kickout
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 @@ -719,9 +745,11 @@ depends on: original_hearing_date_past
code: |
eviction_motion_for_leave_attachment.enabled = original_hearing_date_past
---
id: add eviction discovery if wants discovery
code: |
eviction_discovery_attachment.enabled = wants_discovery
---
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 All @@ -733,6 +761,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
---
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 @@ -743,6 +772,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 @@ -83,6 +84,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 @@ -105,14 +107,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 @@ -212,8 +217,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 @@ -340,21 +345,27 @@ subquestion: |
% endif
continue button field: recommend_filing_answer
---
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
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
####### This file is not currently used because Case.net reminders are a better option #######
---
id: allow_cron
mandatory: True
code: |
allow_cron = True
Expand Down Expand Up @@ -87,6 +88,7 @@ fields:
lambda y: phone_number_is_valid(y) or validation_error("Enter a valid phone number")
show if: al_user_preferred_reminder_formats["sms"]
---
id: al_reminders
variable name: al_reminders
data:
filing_documents:
Expand All @@ -99,6 +101,7 @@ code: |
al_reminders[i]["initial sms template"] = "al_reminder_initial_sms_template"
al_reminders[i]["initial email template"] = "al_reminder_initial_email_template"
---
id: al_reminder_initial_sms_template
template: al_reminder_initial_sms_template
content: |
% if person_answering == "tenant":
Expand All @@ -109,6 +112,7 @@ content: |
The tenant will get the reminders at this phone number.
% endif
---
id: al_reminder_initial_email_template
template: al_reminder_initial_email_template
subject: |
% if person_answering == "tenant":
Expand All @@ -125,6 +129,7 @@ content: |
You will get the reminders using this email address.
% endif
---
id: al_reminder_filing_template
template: al_reminder_filing_template
subject: |
% if person_answering == "tenant":
Expand All @@ -139,6 +144,7 @@ content: |
If the tenant has not filed yet, they should make a plan to or file today!
% endif
---
id: reminders response
event: cron_daily
code: |
# NOTE: there can only be one cron_daily per interview. If you want to add additional daily cron tasks instead of replacing
Expand Down Expand Up @@ -171,6 +177,7 @@ code: |
allow_cron = False
response()
---
id: reminders cold
code: |
if al_user_wants_reminders and task_not_yet_performed(f"al_reminder_initial_{reminder}"):
if al_user_preferred_reminder_formats.get("email") and task_not_yet_performed(f"al_reminder_initial_{reminder}_email"):
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
id: terms
terms:
ABANDONED PROPERTY: |
When a tenant leaves their stuff behind in the rental place after moving out and doesn't want to get it back.
Expand Down
Loading

0 comments on commit 2da370e

Please sign in to comment.