#NEWLINE# def get_link( self , requested_linkname , prefix = '' ) : #NEWLINE# #INDENT# full_prefix = ( ( prefix + '::' ) if prefix else '' ) #NEWLINE# for link in self . links : #NEWLINE# #INDENT# if ( ( full_prefix + link . name ) == requested_linkname ) : #NEWLINE# #INDENT# return link #NEWLINE# #UNINDENT# #UNINDENT# for submodel in self . submodels : #NEWLINE# #INDENT# res = submodel . get_link ( requested_linkname , ( ( ( prefix + '::' ) + submodel . name ) if prefix else submodel . name ) ) #NEWLINE# if res : #NEWLINE# #INDENT# return res