示例#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
示例#2
0
文件: easyzone.py 项目: arnike/Wenix
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
示例#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