#NEWLINE# def __init__( self , app , conf ) : #NEWLINE# #INDENT# if ( not MODULE_DEPENDENCY_MET ) : #NEWLINE# #INDENT# raise ImportError ( 'dnspython is required for this module' ) #NEWLINE# #UNINDENT# self . app = app #NEWLINE# storage_domain = conf . get ( 'storage_domain' , 'example.com' ) #NEWLINE# self . storage_domain = [ ( '.' + s ) for s in list_from_csv ( storage_domain ) if ( not s . startswith ( '.' ) ) ] #NEWLINE# self . storage_domain += [ s for s in list_from_csv ( conf ) if s . startswith ( '.' ) ] #NEWLINE# self . lookup_depth = int ( conf . get ( 'lookup_depth' , '1' ) ) #NEWLINE# self . memcache = None #NEWLINE# self . logger = get_logger ( conf , log_route = 'cname-lookup' )