def handle_zone(zone_name, zone_meta, public, private):
    if not zone_meta['file']:
        print "No zone file for {0}".format(zone_name)
        return
    print "Importing {0}. View: {1}".format(zone_name,
                        'public' if public else 'private')
    mzone = get_zone_data(zone_name, zone_meta['file'], settings.ZONE_PATH)
    views = []
    if public:
        views.append(View.objects.get(name='public'))
    if private:
        views.append(View.objects.get(name='private'))

    if zone_name.endswith(('in-addr.arpa', 'ip6.arpa')):
        direction = 'reverse'
    else:
        direction = 'forward'

    if direction == 'reverse':
        populate_reverse_dns(mzone, zone_name, views)
    else:
        populate_forward_dns(mzone, zone_name, views)
dataset/ETHPy150Open mozilla/inventory/migrate_dns/import_utils.py/handle_zone/original