예제 #1
0
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)
예제 #2
0
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)
예제 #3
0
파일: district.py 프로젝트: liuzelei/walis
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)
예제 #4
0
파일: entry.py 프로젝트: liuzelei/walis
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)
예제 #5
0
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)