#NEWLINE# @ property #NEWLINE# def available_lang_by_tuple( self ) : #NEWLINE# #INDENT# " \n        Get all available languages by a list of tuple.\n        Return [(u'en', u'English'), (u'it', u'Italian')]\n\n        " #NEWLINE# names = self . get_all_lang_by_code ( g . lang ) #NEWLINE# list_languages = self . available_lang #NEWLINE# return [ ( x , y ) for ( x , y ) in sorted ( names [ 'value' ] . iteritems ( ) ) if ( x in list_languages ) ]