@classmethod
def CheckAreasWithSubdistricts(cls, postcode):
    impacted_by_rule = False
    if postcode.outward_subdistrict:
        areas_with_subdistricts = cls.AreasWithSubdistricts
        impacted_by_rule = (not (postcode.outward_area in areas_with_subdistricts))
        if (not impacted_by_rule):
            subdivided_districts_in_area = areas_with_subdistricts[postcode.outward_area]
            if subdivided_districts_in_area:
                impacted_by_rule = (not (postcode.outward_district in subdivided_districts_in_area))
    return impacted_by_rule
@classmethod
def CheckAreasWithSubdistricts(cls, postcode):
    impacted_by_rule = False
    if postcode.outward_subdistrict:
        areas_with_subdistricts = cls.AreasWithSubdistricts
        impacted_by_rule = (not (postcode.outward_area in areas_with_subdistricts))
        if (not impacted_by_rule):
            subdivided_districts_in_area = areas_with_subdistricts[postcode.outward_area]
            if subdivided_districts_in_area:
                impacted_by_rule = (not (postcode.outward_district in subdivided_districts_in_area))
    return impacted_by_rule