human
Can you provide a the Python program you requested given the following:
Complete the below
def layer_feature():

    ''''RESTful CRUD controller'
    '''
assistant
#Here is the Python program you requested.
    s3db.set_method(module, resourcename, method='disable', action=disable_layer)
    def prep(r):
        if r.interactive:
            if (r.component_name == 'config'):
                ltable = s3db.gis_layer_config
                ltable.base.writable = ltable.base.readable = False
                if (r.method != 'update'):
                    table = r.table
                    query = ((ltable.layer_id == table.layer_id) & (table.id == r.id))
                    rows = db(query).select(ltable.config_id)
                    ltable.config_id.requires = IS_ONE_OF(db, 'gis_config.id', '%(name)s', not_filterby='config_id', not_filter_opts=[row.config_id for row in rows])
        return True
    s3.prep = prep
    def postp(r, output):
        if (r.interactive and (r.method != 'import')):
            if (not r.component):
                s3_action_buttons(r, copyable=True)
                inject_enable(output)
        return output
    s3.postp = postp
    output = s3_rest_controller(rheader=s3db.gis_rheader)
    return output