'@todo: docstring'

@staticmethod
def exposure_onaccept(form):

    formvars = form.vars
    try:
        record_id = formvars.id
    except AttributeError:
        return
    db = current.db
    s3db = current.s3db
    if ('case_id' not in formvars):
        etable = s3db.disease_exposure
        row = db((etable.id == record_id)).select(etable.case_id, limitby=(0, 1)).first()
        if (not row):
            return
        case_id = row.case_id
    else:
        case_id = formvars.case_id
    disease_propagate_case_status(case_id)
    return
