human
Complete this python program:
def hrm_experience_controller():
assistant
#Here is the Python program you requested.

    """Experience Controller, defined in the model for use from
    multiple controllers for unified menus
    - used for Adding/Editing on Profile page
    """
    def prep(r):
        if (r.method in ('create', 'update')):
            field = current.s3db.hrm_experience.person_id
            person_id = current.request.get_vars.get('~.person_id', None)
            if person_id:
                field.default = person_id
                field.readable = field.writable = False
            elif (r.method == 'update'):
                refresh = r.get_vars.get('refresh')
                if (refresh and refresh.startswith('profile-list-hrm_experience')):
                    field.readable = field.writable = False
        return True
    current.response.s3.prep = prep
    return current.rest_controller('hrm', 'experience')