def group():
    ' Problem Group REST Controller '
    if (not s3_has_role('DelphiAdmin')):
        s3db.configure('delphi_group', deletable=False)

    def prep(r):
        if r.interactive:
            if r.component:
                tablename = r.component.tablename
                list_fields = s3db.get_config(tablename, 'list_fields')
                try:
                    list_fields.remove('group_id')
                except:
                    pass
                s3db.configure(tablename, deletable=s3_has_role('DelphiAdmin'), list_fields=list_fields)
        return True
    s3.prep = prep
    rheader = group_rheader
    return s3_rest_controller(rheader=rheader, native=True)
Problem Group REST Controller
def group():
    '  '
    if (not s3_has_role('DelphiAdmin')):
        s3db.configure('delphi_group', deletable=False)

    def prep(r):
        if r.interactive:
            if r.component:
                tablename = r.component.tablename
                list_fields = s3db.get_config(tablename, 'list_fields')
                try:
                    list_fields.remove('group_id')
                except:
                    pass
                s3db.configure(tablename, deletable=s3_has_role('DelphiAdmin'), list_fields=list_fields)
        return True
    s3.prep = prep
    rheader = group_rheader
    return s3_rest_controller(rheader=rheader, native=True)