Skip to content
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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
~$*
*Zone.Identifier
.venv
node_modules
2 changes: 1 addition & 1 deletion docassemble/HousingCodeChecklist/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '1.31.0'
__version__ = "1.31.0"
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ metadata:
- Sofija Belajcic
---
code: |
interview_metadata['main_interview_key'] = 'Repair_Demand_Letter'
interview_metadata["main_interview_key"] = "Repair_Demand_Letter"
---
code: |
# This controls the default country and list of states in address field questions
Expand All @@ -24,13 +24,13 @@ code: |
AL_DEFAULT_STATE = "MA"
---
code: |
github_repo_name = 'docassemble-RepairDemandLetter'
github_repo_name = "docassemble-RepairDemandLetter"
---
code: |
interview_short_title = "Write a repair demand letter to your landlord"
---
code: |
al_form_type = 'letter'
al_form_type = "letter"
---
objects:
- other_parties: ALPeopleList.using(ask_number=True,target_number=1)
Expand All @@ -44,8 +44,8 @@ comment: |
Controls order and branching logic for questions specific to this form
id: interview_order_Repair_Demand_Letter
code: |
nav.set_section('review_Repair_Demand_Letter')
user_role = 'na'
nav.set_section("review_Repair_Demand_Letter")
user_role = "na"
users.gather()
set_parts(subtitle=str(users))
users[0].address.address
Expand All @@ -56,7 +56,7 @@ code: |
notification_date
set_progress(40)
if written_notification == True:
letter_date
letter_date
tenant_repair_issue_description
effect_of_conditions
set_progress(60)
Expand All @@ -78,12 +78,13 @@ code: |
interview_order_Repair_Demand_Letter
signature_date
# Save anonymized interview statistics (customize the saved data below)
store_variables_snapshot(data={'zip': users[0].address.zip})
store_variables_snapshot(data={"zip": users[0].address.zip})
Repair_Demand_Letter_preview_question
basic_questions_signature_flow
users[0].signature
Repair_Demand_Letter_download
---
id: landlord is not subject to 93a standalone
event: landlord_is_not_subject_to_93a
decoration: hand
question: |
Expand Down Expand Up @@ -138,4 +139,4 @@ objects:
---
code: |
Repair_Demand_Letter_post_interview_instructions.enabled = True
Repair_Demand_Letter_attachment.enabled = True
Repair_Demand_Letter_attachment.enabled = True
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,21 @@ code: |
interview_metadata
if not defined("interview_metadata['Repair_Demand_Letter']"):
interview_metadata.initializeObject("Repair_Demand_Letter")
interview_metadata["Repair_Demand_Letter"].update({
"al_weaver_version": "1.6.2",
"generated on": "2022-03-31",
"title": "Repair Demand Letter",
"short title": "Repair Demand Letter",
"description": "A letter of demand for relief under the Consumer Protection Act, Chapter 93A",
"original_form": "https://www.masslegalhelp.org/sites/default/files/2024-01/lt1-form-10-repair-demand.pdf",
"allowed courts": [
],
"categories": [
],
"logic block variable": "interview_order_Repair_Demand_Letter",
"attachment block variable": "Repair_Demand_Letter_attachment",
"typical role": "plaintiff",
})
interview_metadata["Repair_Demand_Letter"].update(
{
"al_weaver_version": "1.6.2",
"generated on": "2022-03-31",
"title": "Repair Demand Letter",
"short title": "Repair Demand Letter",
"description": "A letter of demand for relief under the Consumer Protection Act, Chapter 93A",
"original_form": "https://www.masslegalhelp.org/sites/default/files/2024-01/lt1-form-10-repair-demand.pdf",
"allowed courts": [],
"categories": [],
"logic block variable": "interview_order_Repair_Demand_Letter",
"attachment block variable": "Repair_Demand_Letter_attachment",
"typical role": "plaintiff",
}
)
---
objects:
- other_parties: ALPeopleList.using(ask_number=True,target_number=1)
Expand All @@ -37,16 +37,16 @@ comment: |
Controls order and branching logic for questions specific to this form
id: interview_order_Repair_Demand_Letter
code: |
nav.set_section('review_Repair_Demand_Letter')
user_role = 'plaintiff'
nav.set_section("review_Repair_Demand_Letter")
user_role = "plaintiff"
users[0].email
users.gather()
set_parts(subtitle=str(users))
other_parties.gather()
tenant_movein_date
notification_date
if written_notification == True:
letter_date
letter_date
tenant_repair_issue_description
effect_of_conditions
if damage_calculation_method in ["tenant_calculation", "uptocode_calculation"]:
Expand Down Expand Up @@ -200,8 +200,16 @@ fields:
val("landlord_is_housing_authority") === false && val("landlord_is_government") === false && (val("landlord_lives_in_building") === false || (val("building_larger_than_4_units") || val("landlord_rents_other_property")) )
---
code: |
is_landlord_subject_to_93a = not landlord_is_housing_authority and not landlord_is_government and (not landlord_lives_in_building or (building_larger_than_4_units or landlord_rents_other_property))
is_landlord_subject_to_93a = (
not landlord_is_housing_authority
and not landlord_is_government
and (
not landlord_lives_in_building
or (building_larger_than_4_units or landlord_rents_other_property)
)
)
---
id: landlord is not subject to 93a
continue button field: landlord_is_not_subject_to_93a
decoration: hand
question: |
Expand Down Expand Up @@ -583,7 +591,10 @@ fields:
validation code: |
if damage_calculation_method == "uptocode_calculation":
if tenant_percentage_estimate < 5:
validation_error("Select a percentage that is greater than 0", field="tenant_percentage_estimate")
validation_error(
"Select a percentage that is greater than 0",
field="tenant_percentage_estimate",
)
---
template: what_if_problem_over_multiple_periods
subject: |
Expand Down Expand Up @@ -738,9 +749,11 @@ depends on:
- tenant_percentage_estimate
code: |
tenant_warranty_estimate = (
tenant_unit_rent * 12 * (
min(tenant_time_estimate / tenant_time_estimate_denominator, 6)
) * tenant_percentage_estimate / 100
tenant_unit_rent
* 12
* (min(tenant_time_estimate / tenant_time_estimate_denominator, 6))
* tenant_percentage_estimate
/ 100
)
---
template: settlement_offer_93a_explanation
Expand Down Expand Up @@ -832,6 +845,7 @@ review:
* ${ item }
% endfor
---
id: edit repair demand letter landlords
continue button field: other_parties.revisit
question: |
Edit other_parties
Expand All @@ -853,6 +867,7 @@ edit:
confirm: True

---
id: edit repair demand letter tenants
continue button field: users.revisit
question: |
Edit users
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,27 +9,29 @@ comment: |
This section is used by MAVirtualCourts to control how some of the questions work.
mandatory: True
code: |
interview_metadata # make sure we initialize the object
interview_metadata # make sure we initialize the object
if not defined("interview_metadata['tenant_repair_request']"):
interview_metadata.initializeObject('tenant_repair_request')
interview_metadata['tenant_repair_request'].update({
'title': 'Tenant Repair Request Letter',
'short title': 'Tenant Repair Request Letter',
'description': 'Tenant Repair Request Letter',
'original_form': '',
'allowed courts': [
'Boston Municipal Court',
'District Court',
'Housing Court',
'Superior Court',
],
'categories': [
'Housing',
],
'logic block variable': 'tenant_repair_request',
'attachment block variable': 'tenant_repair_request',
'typical role': 'plaintiff',
})
interview_metadata.initializeObject("tenant_repair_request")
interview_metadata["tenant_repair_request"].update(
{
"title": "Tenant Repair Request Letter",
"short title": "Tenant Repair Request Letter",
"description": "Tenant Repair Request Letter",
"original_form": "",
"allowed courts": [
"Boston Municipal Court",
"District Court",
"Housing Court",
"Superior Court",
],
"categories": [
"Housing",
],
"logic block variable": "tenant_repair_request",
"attachment block variable": "tenant_repair_request",
"typical role": "plaintiff",
}
)
---
features:
navigation: True
Expand All @@ -39,8 +41,8 @@ sections:
---
id: interview_order_tenant_repair_request
code: |
user_role = 'plaintiff'
# mailing_method
user_role = "plaintiff"
# mailing_method
set_parts(subtitle=str(users))
set_progress(12.5)
users[0].email
Expand Down Expand Up @@ -119,7 +121,7 @@ subquestion: |

Before you start, you will need information about your landlord and their address.

*The [Court Forms Online](https://courtformsonline.org/housing/) project may be able to help with other housing problems.*
*The [Court Forms Online](https://courtformsonline.org/ma/housing) project may be able to help with other housing problems.*

help:
label: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ code: |
interview_order_tenant_repair_request
preview_screen
users[i].signature
download_tenant_repair_request
download_tenant_repair_request
---
code: |
al_form_type = "letter"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,13 @@ code: |
user_role = "plaintiff"
---
code: |
allowed_courts = ["Boston Municipal Court","District Court","Housing Court","Superior Court"]
al_form_type = 'existing_case'
allowed_courts = [
"Boston Municipal Court",
"District Court",
"Housing Court",
"Superior Court",
]
al_form_type = "existing_case"
---
code: |
landlord_name_is_optional = False
Expand All @@ -40,7 +45,7 @@ comment: |
Controls order and branching logic for questions specific to this form
id: interview_order_Contempt_Complaint
code: |
nav.set_section('review_Contempt_Complaint')
nav.set_section("review_Contempt_Complaint")
user_role = "plaintiff"
users.gather()
users.there_is_another
Expand Down Expand Up @@ -72,7 +77,7 @@ code: |
interview_order_Contempt_Complaint
signature_date
# Save anonymized interview statistics (customize the saved data below)
store_variables_snapshot(data={'zip': users[0].address.zip})
store_variables_snapshot(data={"zip": users[0].address.zip})
Contempt_Complaint_preview_question
basic_questions_signature_flow
users[0].signature
Expand Down Expand Up @@ -149,7 +154,7 @@ question: |
% endif
fields:
- code: |
other_parties[i].name_fields(person_or_business='unsure')
other_parties[i].name_fields(person_or_business="unsure")
---
id: information about the landlord
question: |
Expand Down
Loading
Loading