#NEWLINE# def getShortenedName( name , maxLength = 30 ) : #NEWLINE# #INDENT# if ( len ( name ) > maxLength ) : #NEWLINE# #INDENT# name = ( name [ : ( maxLength - 3 ) ] + '...' ) #NEWLINE# #UNINDENT# return name