#NEWLINE# def sub_name( self , account ) : #NEWLINE# #INDENT# def sub_name_components( account ) : #NEWLINE# #INDENT# if ( account == self ) : #NEWLINE# #INDENT# return [ ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( account . parent . base_name is None ) : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return ( sub_name_components ( account . parent ) + [ account . base_name ] ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# components = sub_name_components ( account ) #NEWLINE# if components : #NEWLINE# #INDENT# return ':' . join ( self )