'On Accept for GIS Locations (after DB I/O)'

@staticmethod
def gis_location_onaccept(form):

    auth = current.auth
    form_vars = form.vars
    id = form_vars.id
    if (form_vars.path and current.response.s3.bulk):
        db = current.db
        db((db.gis_location.id == id)).update(path=None)
    if ((not auth.override) and (not auth.rollback)):
        feature = json.dumps(dict(id=id, level=form_vars.get('level', False)))
        current.s3task.async('gis_update_location_tree', args=[feature])
    return
