Skip to content

Commit

Permalink
Merge pull request #14 from SuffolkLITLab/filter-dupage
Browse files Browse the repository at this point in the history
Prevent filing in DuPage county; filter some case types
  • Loading branch information
mnewsted authored Oct 31, 2024
2 parents 34c1e4f + ea98b0a commit 4e365d0
Showing 1 changed file with 47 additions and 3 deletions.
50 changes: 47 additions & 3 deletions docassemble/AppearanceEfile/data/questions/appearance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -227,12 +227,33 @@ code: |
def will_kickout(case):
if case.category.upper() == "CONFIDENTIAL":
return True
# Case categories determine a lot of things, I'm not comfortable with contining
# if it's not there.
# Case categories determine a lot of things, I'm not comfortable with continuing
# if it's not defined.
if case.category not in case_category_map and case.case_type not in case_type_map:
return True
case_category_name = (case_category_map.get(case.category) or {}).get('name', '').lower()
if case_category_name in ['probate', 'guardianship', 'juvenile abuse', 'criminal misdemeanor', 'quasi-criminal', 'criminal felony']:
# See https://efile-test.suffolklitlab.org/jurisdictions/illinois/codes/categories
if case_category_name in [
'probate',
'guardianship',
'mental health',
'adoption',
'juvenile abuse',
'juvenile delinquent',
'juvenile',
'criminal felony',
'criminal misdemeanor',
'driving under the influence',
'domestic violence',
'quasi-criminal',
'major traffic',
'traffic',
'order of protection',
'contempt of court',
'ordinance violation',
'conservation',
'miscellaneous criminal',
]:
return True
# case types change more, so okay with not being there
case_type_name = (case_type_map.get(case.case_type) or {}).get('name', '').lower()
Expand All @@ -255,6 +276,9 @@ subquestion: |
* Probate, or a case involving a will or an estate
* Juvenile abuse and neglect
* Criminal (misdemeanor or felony)
* Protective orders including Orders of Protection (OP), Stalking No Contact Orders (SNCO), and Civil No Contact Orders (CNCO)
* Adoption
* Mental Health
Contact your local circuit clerk, or you can text or call [**IllinoisCourtHelp**](https://ilcourthelp.gov) at (833) 411-1121 for assistance.
---
Expand All @@ -270,6 +294,10 @@ subquestion: |
* Probate, or a case involving a will or an estate
* Juvenile abuse and neglect
* Criminal (misdemeanor or felony)
* Protective orders including Orders of Protection (OP), Stalking No Contact Orders (SNCO), and Civil No Contact Orders (CNCO)
* Adoption
* Mental Health
Contact your local circuit clerk, or you can text or call [**IllinoisCourtHelp**](https://ilcourthelp.gov) at (833) 411-1121 for assistance.
---
Expand All @@ -283,6 +311,9 @@ subquestion: |
* Probate, or a case involving a will or an estate
* Juvenile abuse and neglect
* Criminal (misdemeanor or felony)
* Protective orders including Orders of Protection (OP), Stalking No Contact Orders (SNCO), and Civil No Contact Orders (CNCO)
* Adoption
* Mental Health
fields:
- no label: case_is_invalid_type
Expand Down Expand Up @@ -1903,3 +1934,16 @@ content: |
</body>
</html>
---

### Customized from login_qs.yml in docassemble.EFSPIntegration
---
id: check efile possibility
sets:
- can_check_efile
code: |
if efile_setup and trial_court.address.county not in ["Cook", "DuPage"]:
# Ask the user if they want to efile
can_check_efile = user_wants_efile
else:
show_no_efile
can_check_efile = False

0 comments on commit 4e365d0

Please sign in to comment.