Exemplo n.º 1
0
def zone_from_file(domain, filename):
    '''Read a zone file and return the contents as a Zone object.
    '''
    zone = Zone(domain)
    zone.load_from_file(filename)
    return zone
Exemplo n.º 2
0
def zone_from_file(domain, filename, *args, **kwargs):
    '''Read a zone file and return the contents as a Zone object.
    '''
    zone = Zone(domain)
    zone.load_from_file(filename, *args, **kwargs)
    return zone
Exemplo n.º 3
0
def zone_from_file(domain, filename):
    """Read a zone file and return the contents as a Zone object.
    """
    zone = Zone(domain)
    zone.load_from_file(filename)
    return zone