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

    """REST controller for CAP info segments
    - shouldn\t ever be called
    """
    def prep(r):
        if (r.representation == 'xls'):
            table = r.table
            table.alert_id.represent = None
            table.language.represent = None
            table.category.represent = None
            table.response_type.represent = None
            list_fields = ['alert_id', 'language', 'category', (T('Event    Type'), 'event_type_id$name'), 'response_type', 'audience', 'event_code', (T('Sender    Name'), 'sender_name'), 'headline', 'description', 'instruction', 'contact']
            s3db.configure('cap_info', list_fields=list_fields)
        result = info_prep(r)
        if result:
            if ((not r.component) and (r.representation == 'html')):
                s3.crud.submit_style = 'hide'
                s3.crud.custom_submit = (('add_language', T('Save    and    add    another    language...'), 'button    small'),)
        return result
    s3.prep = prep
    def postp(r, output):
        if (r.representation == 'html'):
            if (r.component_name == 'area'):
                update_url = URL(f='area', args=['[id]'])
                s3_action_buttons(r, update_url=update_url)
            if ((not r.component) and ('form' in output)):
                set_priority_js()
        return output
    s3.postp = postp
    output = s3_rest_controller(rheader=s3db.cap_rheader)
    return output