def migrate_single_zone(view_name, zone_name, zone_file):
    if view_name not in ('public', 'private', 'both'):
        print "view must be 'public' or 'private'"
        return
    zone_meta = {'file': zone_file}

    if view_name == 'private':
        handle_zone(zone_name, zone_meta, False, True)
    elif view_name == 'public':
        handle_zone(zone_name, zone_meta, True, False)
    elif view_name == 'both':
        handle_zone(zone_name, zone_meta, True, True)
dataset/ETHPy150Open mozilla/inventory/migrate_dns/import_utils.py/migrate_single_zone/original