'Update the overall status from the Gutting/Mold status'

@staticmethod
def assess_building_onvalidation(form):

    vars = form.vars
    status = ((vars.status and int(vars.status)) or None)
    if (status < 3):
        status_gutting = ((vars.status_gutting and int(vars.status_gutting)) or None)
        status_mold = ((vars.status_mold and int(vars.status_mold)) or None)
        if ((status_gutting in (3, 4)) or (status_mold in (3, 4))):
            vars.status = 3
    return
