def set_is_valid(pk_or_pks, is_valid): pks = always_list(pk_or_pks) for pk in pks: district = thirdparty_svc.ers.TDistrict() district.is_valid = is_valid district = any_to_dic(district) post_or_put(pk, district)
def set_is_valid(pk_or_pks, is_valid): pks = always_list(pk_or_pks) for pk in pks: zone = thirdparty_svc.ers.TZone() zone.is_valid = is_valid zone = any_to_dic(zone) post_or_put(pk,zone)
def set_is_valid(pk_or_pks, is_valid): pks = always_list(pk_or_pks) for pk in pks: entry = thirdparty_svc.ers.TEntry() entry.is_valid = is_valid entry = any_to_dic(entry) post_or_put(pk,entry)
def set_is_valid(pk_or_pks, is_valid): pks = always_list(pk_or_pks) for pk in pks: city = thirdparty_svc.ers.TCity() city.is_valid = is_valid post_or_put(pk, city)