#NEWLINE# def _register_types( self ) : #NEWLINE# #INDENT# for ext in self : #NEWLINE# #INDENT# network_type = ext . obj . get_type ( ) #NEWLINE# if ( network_type in self . drivers ) : #NEWLINE# #INDENT# LOG . error ( _LE ( "Type driver '%(new_driver)s' ignored because type driver '%(old_driver)s' is already registered for type '%(type)s'" ) , { #NEWLINE# #INDENT# 'new_driver' : ext . name , #NEWLINE# 'old_driver' : self . drivers [ network_type ] . name , #NEWLINE# 'type' : network_type , #NEWLINE# #UNINDENT# } ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . drivers [ network_type ] = ext #NEWLINE# #UNINDENT# #UNINDENT# LOG . info ( _LI ( 'Registered types: %s' ) , self . drivers . keys ( ) )