#NEWLINE# def register( self , name , obj ) : #NEWLINE# #INDENT# if ( not isinstance ( obj , Topology ) ) : #NEWLINE# #INDENT# raise HydroException ( 'Not a Topology instance' ) #NEWLINE# #UNINDENT# self . _topologies [ name ] = name