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

    """RESTful CRUD controller
    """
    def prep(r):
        if (r.interactive or (r.representation == 'aadata')):
            if r.component:
                if (r.component.alias == 'assign'):
                    if (not r.method):
                        r.method = 'assign'
                    if (r.method == 'assign'):
                        r.custom_action = s3db.hrm_AssignMethod(component='assign')
                cname = r.component_name
                if (cname == 'config'):
                    s3db.configure('gis_config', deletable=False)
                    s3.crud.submit_button = T('Update')
                elif (cname in ('asset', 'human_resource', 'organisation', 'site')):
                    s3.crud.submit_button = T('Assign')
                    s3.crud_labels['DELETE'] = T('Remove')
                    f = s3db[('event_%s' % cname)].event_id
                    f.default = r.record.event_id
                    f.readable = f.writable = False
            elif (r.method not in ('read', 'update')):
                r.table.closed.writable = r.table.closed.readable = False
            elif (r.method == 'update'):
                table = r.table
                table.scenario_id.writable = False
                table.exercise.writable = False
                table.exercise.comment = None
                table.date.writable = False
        return True
    s3.prep = prep
    def postp(r, output):
        if r.interactive:
            if r.component:
                if (r.component.name == 'human_resource'):
                    s3_action_buttons(r)
                    if ('msg' in settings.modules):
                        s3base.S3CRUD.action_button(url=URL(f='compose', vars={'hrm_id': '[id]'}), _class='action-btn    send', label=str(T('Send    Notification')))
        return output
    s3.postp = postp
    output = s3_rest_controller(rheader=s3db.event_rheader)
    return output