#NEWLINE# def hosts( hostnames , zone = 'net' ) : #NEWLINE# #INDENT# '\n    Builds a host list suitable for use in a firewall rule.\n    ' #NEWLINE# addresses = [ gethostbyname ( name ) for name in hostnames ] #NEWLINE# return ( '%s:%s' % ( zone , ',' . join ( addresses ) ) )