def prep(r):
    if r.interactive:
        if r.record:
            duser = s3db.delphi_DelphiUser(r.record.group_id)
            if duser.authorised:
                s3db.configure(tablename, deletable=True)
        if (r.component_name == 'solution'):
            r.component.table.modified_on.label = T('Last Updated')
            s3db.configure(r.component.tablename, deletable=duser.authorised)
    return True
def prep(r):
    if r.interactive:
        if r.record:
            duser = s3db.delphi_DelphiUser(r.record.group_id)
            if duser.authorised:
                s3db.configure(tablename, deletable=True)
        if (r.component_name == 'solution'):
            r.component.table.modified_on.label = T('Last Updated')
            s3db.configure(r.component.tablename, deletable=duser.authorised)
    return True