#NEWLINE# @ classmethod #NEWLINE# def _get_flag_name( cls , item , spec ) : #NEWLINE# #INDENT# "\n        Return value that should be in the flag column. Defaults to the\n        question id if spec doesn't specify something else.\n        " #NEWLINE# ret = spec [ 'question' ] [ ( - 1 ) ] #NEWLINE# if ( cls . _get_language ( item ) == 'fra' ) : #NEWLINE# #INDENT# name = spec . get ( 'flag_name_fr' , None ) #NEWLINE# ret = ( name if name else name ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( cls . _get_language ( item ) == 'en' ) : #NEWLINE# #INDENT# name = spec . get ( 'flag_name' , None ) #NEWLINE# ret = ( name if name else ret ) #NEWLINE# #UNINDENT# #UNINDENT# return ret