def prep(r):
    s3db.gis_location_filter(r)
    if (r.interactive and r.id and (not r.component)):
        field = r.table.obsolete
        field.readable = field.writable = True
    return True
def prep(r):
    s3db.gis_location_filter(r)
    if (r.interactive and r.id and (not r.component)):
        field = r.table.obsolete
        field.readable = field.writable = True
    return True