#NEWLINE# def getMashupName( self , version = ( - 1 ) ) : #NEWLINE# #INDENT# action_map = hasTag . mshptrail . actionMap #NEWLINE# if ( version == ( - 1 ) ) : #NEWLINE# #INDENT# version = self . currentVersion #NEWLINE# #UNINDENT# count = 0 #NEWLINE# while True : #NEWLINE# #INDENT# hasTag = self . mshptrail . hasTagForActionId ( version ) #NEWLINE# if ( hasTag or ( version <= 1 ) ) : #NEWLINE# #INDENT# if hasTag : #NEWLINE# #INDENT# name = self . mshptrail . getTagForActionId ( version ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# name = 'ROOT' #NEWLINE# #UNINDENT# count_str = '' #NEWLINE# if ( count > 0 ) : #NEWLINE# #INDENT# count_str = ( ' + ' + str ( count ) ) #NEWLINE# #UNINDENT# return ( name + count_str ) #NEWLINE# #UNINDENT# version = action_map [ version ] . parent_id #NEWLINE# count += 1