#NEWLINE# def _translation_map( self ) : #NEWLINE# #INDENT# cls = self . item . __class__ #NEWLINE# if ( cls not in _translation_map_cache ) : #NEWLINE# #INDENT# map = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for ( idx , fct ) in enumerate ( self . item . _feincms_content_types ) : #NEWLINE# #INDENT# dct = ContentType . objects . get_for_model ( fct ) #NEWLINE# map [ ( - dct . id ) ] = idx #NEWLINE# map [ idx ] = dct . id #NEWLINE# #UNINDENT# _translation_map_cache [ cls ] = map #NEWLINE# #UNINDENT# return _translation_map_cache [ cls ]