コード例 #1
0
 def type_eligibility(self, disposition):
     if ChargeUtil.dismissed(disposition):
         return TypeEligibility(
             EligibilityStatus.INELIGIBLE, reason="Dismissed violations are ineligible by omission from statute"
         )
     elif ChargeUtil.convicted(disposition):
         return TypeEligibility(EligibilityStatus.ELIGIBLE, reason="Eligible under 137.225(5)(d)")
コード例 #2
0
ファイル: duii.py プロジェクト: wittejm/recordexpungPDX
 def type_eligibility(self, disposition):
     if ChargeUtil.dismissed(disposition):
         raise ValueError("Dismissed criminal charges should have been caught by another class.")
     elif ChargeUtil.convicted(disposition):
         return TypeEligibility(
             EligibilityStatus.INELIGIBLE, reason="Traffic offenses are ineligible under 137.225(7)(a)"
         )
コード例 #3
0
 def type_eligibility(self, disposition):
     if ChargeUtil.dismissed(disposition):
         return TypeEligibility(EligibilityStatus.ELIGIBLE,
                                reason="Eligible under 137.225(1)(b)")
     elif ChargeUtil.convicted(disposition):
         return TypeEligibility(EligibilityStatus.ELIGIBLE,
                                reason="Eligible under 137.225(5)(c)")
コード例 #4
0
ファイル: sex_crimes.py プロジェクト: wittejm/recordexpungPDX
 def type_eligibility(self, disposition):
     if ChargeUtil.dismissed(disposition):
         raise ValueError("Dismissed criminal charges should have been caught by another class.")
     elif ChargeUtil.convicted(disposition):
         return TypeEligibility(
             EligibilityStatus.INELIGIBLE, reason="Fails to meet requirements under 137.225(6)(f)"
         )
コード例 #5
0
ファイル: sex_crimes.py プロジェクト: wittejm/recordexpungPDX
 def type_eligibility(self, disposition):
     if ChargeUtil.dismissed(disposition):
         raise ValueError("Dismissed criminal charges should have been caught by another class.")
     elif ChargeUtil.convicted(disposition):
         return TypeEligibility(
             EligibilityStatus.INELIGIBLE,
             reason="Possibly meets requirements under 137.225(6)(f) - Email [email protected] with subject line '6F' for free and confidential further analysis",
         )
コード例 #6
0
 def type_eligibility(self, disposition):
     if ChargeUtil.dismissed(disposition):
         raise ValueError(
             "Dismissed criminal charges should have been caught by another class."
         )
     elif ChargeUtil.convicted(disposition):
         return TypeEligibility(
             EligibilityStatus.INELIGIBLE,
             reason="Ineligible by omission from statute")
コード例 #7
0
 def type_eligibility(self, disposition):
     if ChargeUtil.convicted(disposition):
         return TypeEligibility(EligibilityStatus.INELIGIBLE,
                                reason="Ineligible under 137.225(7)(a)")
     elif ChargeUtil.dismissed(disposition):
         return TypeEligibility(
             EligibilityStatus.NEEDS_MORE_ANALYSIS,
             reason=
             "Dismissed violations are eligible under 137.225(1)(b) but administrative reasons may make this difficult to expunge.",
         )
コード例 #8
0
 def type_eligibility(self, disposition):
     if ChargeUtil.dismissed(disposition):
         raise ValueError(
             "Dismissed criminal charges should have been caught by another class."
         )
     elif ChargeUtil.convicted(disposition):
         return TypeEligibility(
             EligibilityStatus.ELIGIBLE,
             reason=
             "Convictions that fulfill the conditions of 137.225(5)(a) are eligible",
         )
コード例 #9
0
 def type_eligibility(self, disposition):
     if ChargeUtil.dismissed(disposition):
         return TypeEligibility(
             EligibilityStatus.INELIGIBLE, reason="Dismissed violations are ineligible by omission from statute"
         )
     elif ChargeUtil.convicted(disposition):
         return TypeEligibility(EligibilityStatus.INELIGIBLE, reason="Ineligible under 137.225(7)(a)")
     else:
         return TypeEligibility(
             EligibilityStatus.INELIGIBLE,
             reason="Always ineligible under 137.225(7)(a) (for convictions) or by omission from statute (for dismissals)",
         )
コード例 #10
0
 def type_eligibility(self, disposition):
     if ChargeUtil.dismissed(disposition):
         return TypeEligibility(
             EligibilityStatus.ELIGIBLE, reason="Dismissed criminal charge eligible under 137.225(1)(b)"
         )
     elif ChargeUtil.convicted(disposition):
         return TypeEligibility(EligibilityStatus.ELIGIBLE, reason="Eligible under 137.225(5)(d)")
     else:
         return TypeEligibility(
             EligibilityStatus.ELIGIBLE,
             reason="Reduced Violations are always eligible under 137.225(5)(d) for convictions, or 137.225(1)(b) for dismissals",
         )
コード例 #11
0
 def type_eligibility(self, disposition):
     if ChargeUtil.dismissed(disposition):
         raise ValueError(
             "Dismissed criminal charges should have been caught by another class."
         )
     elif ChargeUtil.convicted(disposition):
         return TypeEligibility(EligibilityStatus.ELIGIBLE,
                                reason="Eligible under 137.225(5)(b)")
     else:
         return TypeEligibility(
             EligibilityStatus.ELIGIBLE,
             reason=
             "Misdemeanors are always eligible under 137.225(5)(b) for convictions, or 137.225(1)(b) for dismissals",
         )
コード例 #12
0
 def type_eligibility(self, disposition):
     if ChargeUtil.dismissed(disposition):
         raise ValueError(
             "Dismissed criminal charges should have been caught by another class."
         )
     elif ChargeUtil.convicted(disposition):
         return TypeEligibility(EligibilityStatus.ELIGIBLE,
                                reason="Eligible under 137.226")
     elif disposition.status in [
             DispositionStatus.UNRECOGNIZED, DispositionStatus.UNKNOWN
     ]:
         return TypeEligibility(
             EligibilityStatus.ELIGIBLE,
             reason=
             "Always eligible under 137.226 (for convictions) or 137.225(1)(b) (for dismissals)",
         )
コード例 #13
0
 def type_eligibility(self, disposition):
     if ChargeUtil.convicted(disposition):
         return TypeEligibility(EligibilityStatus.INELIGIBLE,
                                reason="Ineligible under 137.225(7)(a)")
     elif ChargeUtil.dismissed(disposition):
         return TypeEligibility(
             EligibilityStatus.INELIGIBLE,
             reason="Ineligible by omission from statute")
     elif disposition.status in [
             DispositionStatus.UNRECOGNIZED, DispositionStatus.UNKNOWN
     ]:
         return TypeEligibility(
             EligibilityStatus.INELIGIBLE,
             reason=
             "Always ineligible under 137.225(7)(a) (for convictions) or by omission from statute (for dismissals)",
         )